20.08.2009, 12:53
but i have to put all the code in OnPlayerCommandText?
new
sString[128];
if(!strcmp(cmdtext,"/ann",true))
{
if(!cmdtext[4]) return SendClientMessage(playerid,color,"Parameters: /ann [text]");
format(string,sizeof(string),"%s",cmdtext[5]);
GameTextForAll(string,5000,4);
return 1;
}
new
sString[128];
if(!strcmp(cmdtext,"/ann",true))
{
if(!cmdtext[4]) return SendClientMessage(playerid,color,"Parameters: /ann [text]");
format(string,sizeof(string),"%s",cmdtext[5]);
GameTextForAll(string,5000,4);
return 1;
}

