#4

Well any player can kill any other player regardless of what command they type.. If you just want it to tell them what to do:

pawn Код:
if(strcmp(cmdtext, "/mission", true) == 0)
    {
    if(playerid == 0)
      {
      SendClientMessage(playerid, 0xFF00FFAA, "You are ID 0, so there's no point trying to kill ID 0!");
      }
    else if(!IsPlayerConnected(0))
      {
      SendClientMessage(playerid, 0xFF00FFAA, "ID 0 is not connected!");
      }
    else
      {
      new
        Name[MAX_PLAYER_NAME],
        string[100];
      GetPlayerName(0, Name, sizeof(Name));
      format(string, sizeof(string), "Go and kill %s", Name);
      SendClientMessage(playerid, 0xFF00FFAA, string);
      }
    return 1;
    }
But it's fairly pointless
Reply


Messages In This Thread
ID 0 - by Headshot1108 - 14.03.2009, 16:06
Re: ID 0 - by Weirdosport - 14.03.2009, 16:10
Re: ID 0 - by Headshot1108 - 14.03.2009, 16:10
Re: ID 0 - by Weirdosport - 14.03.2009, 16:16
Re: ID 0 - by introzen - 14.03.2009, 16:17
Re: ID 0 - by Mikep - 14.03.2009, 16:19
Re: ID 0 - by Weirdosport - 14.03.2009, 16:20
Re: ID 0 - by Headshot1108 - 14.03.2009, 16:28
Re: ID 0 - by Weirdosport - 14.03.2009, 16:32
Re: ID 0 - by Ghett0 - 14.03.2009, 16:44

Forum Jump:


Users browsing this thread: 1 Guest(s)