05.05.2011, 22:33
Hi, i created a command /announce in which you say something and it appears as gametext. It works fine, but the problem i can't fix is it shows Unknown Command even that it is working fine. Here's the script:
Does anyone know how to fix this?
Код:
COMMAND:announce(playerid, params[])
{
new announce1, string[150];
if(ALygis[playerid] >= 5)
{
if(sscanf(params,"s",announce1))
{
SendClientMessage(playerid,orandzine,"{FBDF89}[FunZoneLT]>> /announce [pranesimas]");
}
format( string, sizeof(string), "~g~%s", announce1);
GameTextForAll( string, 6000, 3 );
}
else
{
SendClientMessage(playerid,raudona,"[FunZoneLT]>> Jus negalite naudoti sitos komandos.");
}
return 1;
}

