ID System
#5

Код:
  if(strcmp(cmd, "/command", true) == 0 ) {

  tmp = strtok(cmdtext, idx);
  if(!strlen(tmp)) {
  SendClientMessage(playerid, COLOR_ERROR, "USAGE: /command (id)");
  return 1;
  }
  giveplayerid = strval(tmp);

  if(!IsNumeric(tmp)) {
  SendClientMessage(playerid, COLOR_ERROR, "USAGE: /command (id) ID Must be a number");
  return 1;
  }
	if (IsPlayerConnected(giveplayerid)) {
  
  SendClientMessage(giveplayerid, COLOR_ROYALBLUE, "your message");
  }
  else {
  format(string, sizeof(string), "ID (%d) Is not an active player", giveplayerid);
  SendClientMessage(playerid, COLOR_ERROR, string);
  }
  return 1;
  }
You wanted something like this ?
Reply


Messages In This Thread
ID System - by JoeDaDude - 10.06.2009, 21:50
Re: ID System - by JoeDaDude - 11.06.2009, 14:00
Re: ID System - by yom - 11.06.2009, 14:03
Re: ID System - by JoeDaDude - 11.06.2009, 14:07
Re: ID System - by wijnkamp - 12.06.2009, 13:03
Re: ID System - by JoeDaDude - 12.06.2009, 13:06

Forum Jump:


Users browsing this thread: 3 Guest(s)