fixing a command
#2

Try this:
Код:
if(strcmp(cmd,"/suspect", true) == 0)
{
  	if(GetPlayerSkin(playerid) != 288) 
    {
      SendClientMessage(playerid, 0xE3E3E3FF, "ERROR: You are not part of the LSP");
      return 1;
    }
	new giveplayerid;
  	tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
  	    SendClientMessage(playerid, 0xE3E3E3FF, "USAGE: /suspect [playerid]");
  	    return 1;
    }
    giveplayerid = strval(tmp);
    if(!IsPlayerConnected(giveplayerid))
    {
       SendClientMessage(playerid, 0xE3E3E3FF, "ERROR: Player not Conected!");
       return 1;
	}
  	SendClientMessage(playerid, 0xE3E3E3FF, "Done!");
  	SetPlayerColor(giveplayerid,0xFF8000FF);
  	return 1;
}
Reply


Messages In This Thread
fixing a command - by aircombat - 25.02.2010, 12:44
Re: fixing a command - by silvan - 25.02.2010, 13:55

Forum Jump:


Users browsing this thread: 1 Guest(s)