14.03.2009, 16:16
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:
But it's fairly pointless
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;
}

