samp.directory
← Skrypty i biblioteki

emmett-white/samp-another-chat

Another chat for SA-MP

Inne★ 1zaktualizowano cze 2020Brak licencjiPawn
Otwórz na GitHubie

To repozytorium nie ma pliku licencji. Jest publiczne do odczytu, ale samo to nie daje pozwolenia na ponowne użycie.

README.md

samp-another-chat

Another chat for SA-MP

Images

Installation

Simply install to your project:

sampctl p install emmett-white/samp-another-chat

Functions

// stock Chat_Create(const playerid)

public OnPlayerConnect(playerid)
{
    Chat_Create(playerid);
    return 1;
}
// stock Chat_Message(const playerid, const message[])

YCMD:test(playerid, const params[], help)
{
    Chat_Message(playerid, "~r~Te~g~s~b~t.");
    return COMMAND_OK;
}
// stock Chat_Destroy(const playerid)

public OnPlayerDisconnect(playerid, reason)
{
    Chat_Destroy(playerid);
    return 1;
}
// stock Chat_Clear(const playerid)

YCMD:clearchat(playerid, const params[], help)
{
    Chat_Clear(playerid);
    return COMMAND_OK;
}
// stock Chat_Toggle(const playerid, bool: toggle = true)

YCMD:togglechat(playerid, const params[], help)
{
    Chat_Toggle(playerid, (Chat_IsToggled(playerid) == 1) ? false : true);
    return COMMAND_OK;
}
stock Chat_IsToggled(playerid)
// Getting chat status (True/False) 

Ta strona jest zbudowana z tego, co GitHub publikuje o repozytorium. samp.directory nie hostuje kodu. Zgłoś problem z tym wpisem

emmett-white/samp-another-chat: Inne SA-MP | samp.directory