Help with one commands!
#2

try this
pawn Код:
if(strcmp(cmd, "/id", true) == 0)
{
  tmp = strtok(cmdtext, idx);
  if(!strlen(tmp))
  {
    SendClientMessage(playerid, COLOR_GREY, "USAGE: /id [playerid/Name]");
    return 1;
  }
  new pl;
  pl = ReturnUser(tmp);
  if(pl == INVALID_PLAYER_ID)
  {
    SendClientMessage(playerid, COLOR_LIGHTRED, "INVALID PLAYER ID !");
    return 1;
  }
  new name[MAX_PLAYER_NAME]; GetPlayerName(pl name, sizeof(name));
  new str[256]; format(str, sizeof(str), "ID:%d| Name: %s| Score:%d", pl, name, GetPlayerScore(pl));
  SendClientMessage(playerid, COLOR_LIGHTBLUE, str);  
  new name2[MAX_PLAYER_NAME]; GetPlayerName(playerid, name2, sizeof(name2));
  new str[256]; format(str, sizeof(str), "%s is checking you", name2);
  SendClientMessage(pl COLOR_GREEN, str);  
  return 1;
}
this warn the player that you are checking too

Reply


Messages In This Thread
Help with one commands! - by Rocco - 22.07.2009, 15:15
Re: Help with one commands! - by James_Alex - 22.07.2009, 16:43
Re: Help with one commands! - by woot - 22.07.2009, 16:59
Re: Help with one commands! - by Rocco - 22.07.2009, 17:14
Re: Help with one commands! - by James_Alex - 22.07.2009, 17:51
Re: Help with one commands! - by Rocco - 22.07.2009, 18:47

Forum Jump:


Users browsing this thread: 1 Guest(s)