05.03.2014, 12:23
I recently coded an ANNOUNCEMENT Command for my Server it gave me no errors nothing ecept some warnings which are not from the code either.But when i type the command in serverit says unknown.Could you please help me.I use dcmd!
Here is the code:
Here is the code:
Код:
dcmd_announcement(playerid,params[])
{
new string[128];
if(!strlen(params))
{
SendClientMessage(playerid, -1,"{FF0099}[ADMIN]{FFFFFF} /announcement [TEXT]");
return 1;
}
if(IsSpawned[playerid] == 0)
{
SendClientMessage(playerid, -1,"{FF0000}[ERROR]{FFFFFF}You must be spawned in order to be able to use this command.");
return 1;
}
format(string,sizeof(string),"{FF0000}[ANNOUNCEMENT]{FFFFFF}: %s.",PlayerName(playerid),playerid,params);
SendClientMessageToAll(COLOR_ERROR,string);
return 1;
}


