06.12.2012, 17:09
Hello!
This command is kinda bugged, it removes the object but i sends 10 messages saying the same
"[_Christmas_] %s(%d) has removed his santa hat. He doesn't like christmas"
Thanks in advance
This command is kinda bugged, it removes the object but i sends 10 messages saying the same
"[_Christmas_] %s(%d) has removed his santa hat. He doesn't like christmas"
PHP код:
if(strcmp("/remao", cmdtext, true,10)== 0) // Remove Attached Objects
{
for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
{
if(IsPlayerAttachedObjectSlotUsed(playerid, 1)) RemovePlayerAttachedObject(playerid, 1);
new pname[24];
new string[128];
GetPlayerName(playerid,pname,sizeof(pname));
format(string,sizeof(string),"[_Christmas_] %s(%d) has removed his santa hat. He doesn't like christmas",pname,playerid);
SendClientMessageToAll(COLOR_CYAN,string);
}
return 1;
}