26.04.2011, 11:53
pawn Код:
if(!strcmp(cmdtext,"/l",true)) //If the text starts with a '$', it'll send OOC.
{
if(strlen(cmdtext) < 4) return SendClientMessage(playerid, 0xFFFFFFAA, "USAGE: /l [Text]");
new pName[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, pName, sizeof pName);
format(string,sizeof string,"[OOC] %s: %s",pName, cmdtext[3]);
SendClientMessageToAll(0x0000ffff,string);
return 1;
}