Problem with Spamming
#1

That is my code:
Код:
if(strcmp(cmd, "/command", true) == 0)
	{
		tmp = strtok(cmdtext, idx);
		if (!strlen(tmp)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /service [police/fbi/rescue/taxi]");
		else if (strcmp(tmp, "police", true) == 0)
		{
		new Float:p[3];
    GetPlayerPos(playerid,p[0],p[1],p[2]);
    for(new i=0;i<MAX_PLAYERS;i++)
    {
    //OnPlayerCommandText(playerid, "/me55252205525220 takes out his phone and presses on some numbers");
    DisablePlayerCheckpoint(i);
    CallRemoteFunction("OnPlayerCommandText", "is", playerid, "/me action");
    SetPlayerCheckpoint(i,p[0],p[1],p[2],3.0);
    }
		}
		else SendClientMessage(playerid, COLOR_GREY, "USAGE: /service [police/fbi/rescue/taxi]");
		return 1;
	}
When I do /command police - everything works fine except the thing that it spamming me with the command /me action over all the chat..
How to fix that?
Thanks
Reply


Messages In This Thread
Problem with Spamming - by tomnidi - 05.03.2009, 10:37
Re: Problem with Spamming - by [RP]Rav - 05.03.2009, 10:44
Re: Problem with Spamming - by tomnidi - 05.03.2009, 10:54
Re: Problem with Spamming - by Finn - 05.03.2009, 11:02
Re: Problem with Spamming - by [RP]Rav - 05.03.2009, 11:14
Re: Problem with Spamming - by Finn - 05.03.2009, 12:33
Re: Problem with Spamming - by [RP]Rav - 05.03.2009, 12:39
Re: Problem with Spamming - by tomnidi - 05.03.2009, 13:09
Re: Problem with Spamming - by [RP]Rav - 05.03.2009, 13:17
Re: Problem with Spamming - by tomnidi - 05.03.2009, 13:58

Forum Jump:


Users browsing this thread: 1 Guest(s)