19.03.2011, 11:05
Hello everyone , i made an /asay command that allows the admin to send a message to the players. i compiled the .pwn file and there is no errors/warnings , but in game , the command is not working...
Maybe you can tell me what should i do..
Here's the cmd
Maybe you can tell me what should i do..
Here's the cmd
PHP код:
if(!strcmp(cmd, "/asay2"))
{
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFFFFFFFF,"You are not an admin !");
new text[128], string[128];
if(sscanf(params, "s[128]",text)) return SendClientMessage(playerid, 0xFFFFFFFF, "Usage: /asay [text]");
else
{
new pName[128];
GetPlayerName(playerid,pName,128);
format(string,sizeof string,"~b~%s:~r~%s",pName,text);
GameTextForAll(string,3000,4);
}
}
return 1;
}