Roleplay Chat Commands [zcmd]
#1

//=========================== [Chat Commands]=================================//

// OOC

Код:
COMMAND:o(playerid, params[])
{
    new sendername[MAX_PLAYER_NAME];
    new string[256];
    GetPlayerName(playerid, sendername, sizeof(sendername)); 
    if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "Use /o (OOC-G)");
    format(string, sizeof(string), "((OOC)): %s %s ", sendername, params);
    ProxDetector(9999.0, playerid, string, COLOR_GREY);
    return 1;
}

COMMAND:ooc(playerid, params)
{
	return cmd_ooc(playerid, params);
}
// Local OCC

COMMAND:l(playerid, params[])
    {
    new sendername[MAX_PLAYER_NAME];
    new string[128];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "Use /l (Text)");
    format(string, sizeof(string), "((OOC-L)) %s %s ", sendername, params);
    ProxDetector(20.0, playerid, string, COLOR_GREY);
    return 1;
}

// Me

COMMAND:me(playerid, params[])
{
    new sendername[MAX_PLAYER_NAME];
    new string[128];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    if(isnull(params)) return SendClientMessage(playerid, 0xFFFF00AA, "[USAGE]: /me [acion]");
    format(string, sizeof(string), "%s %s", sendername, params);
    ProxDetector(10.0, playerid, string, COLOR_LIGHTBLUE);
    return 1;
}
Hope this helped =)
Reply


Messages In This Thread
Roleplay Chat Commands [zcmd] - by GtasaPoliceModz - 02.01.2012, 19:23
AW: Roleplay Chat Commands [zcmd] - by Drebin - 02.01.2012, 22:43
Re: Roleplay Chat Commands [zcmd] - by LiamM - 02.01.2012, 23:13
Re: Roleplay Chat Commands [zcmd] - by parames3010 - 03.01.2012, 01:48
Re: Roleplay Chat Commands [zcmd] - by Spooky - 03.01.2012, 03:11
Re: Roleplay Chat Commands [zcmd] - by Steven82 - 03.01.2012, 03:13

Forum Jump:


Users browsing this thread: 1 Guest(s)