samp.directory
← Scripts and libraries

emmett-white/samp-another-chat

Another chat for SA-MP

Other★ 1updated Jun 2020No licencePawn
Open on GitHub

This repository has no licence file. It is public to read, but that alone does not give permission to reuse it.

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) 

This page is built from what GitHub publishes about the repository. samp.directory does not host the code. Report a problem with this listing