Un Comando
#4

pawn Код:
if(strcmp(cmdtext, "/comando", true) == 0){
  new tmp[256], tmp2[256], tmp3[256], idx;
  tmp = strtok(cmdtext, idx);
  tmp2 = strtok(cmdtext, idx);
  tmp3 = strtok(cmdtext, idx);
  if(!strlen(tmp) || !strlen(tmp2) || !strlen(tmp3))return SendClientMessage(playerid, color, "ERROR: Uso: /comando <Coordenada X> <Coordenada Y> <Coordenada Z>");
  new Float:X, Float:Y, Float:Z, str[128];
  X = strval(tmp);
  Y = strval(tmp2);
  Z = strval(tmp3);
  SetPlayerPos(playerid, X, Y, Z);
  format(str, sizeof(str), "Has ido a %s, %s, %s", X, Y, Z);
  return SendClientMessage(playerid, color, str);
}
ahi lo tenes...

Nota: no es tanto trabajo buscarlo en algun fs... (EJ: Ladmin) o siquiera pensarlo...
Reply


Messages In This Thread
Un Comando - by Jesus^ - 14.05.2010, 02:38
Re: Un Comando - by Carlos_Martinez - 14.05.2010, 02:52
Re: Un Comando - by Jesus^ - 14.05.2010, 03:07
Re: Un Comando - by TheChaoz - 14.05.2010, 03:22
Re: Un Comando - by Jesus^ - 14.05.2010, 04:17
Re: Un Comando - by ansuke5000 - 14.05.2010, 14:25
Re: Un Comando - by Jesus^ - 14.05.2010, 14:36
Re: Un Comando - by DanielAvila-17 - 14.05.2010, 17:56
Re: Un Comando - by Cesar_Biker - 14.05.2010, 20:59
Re: Un Comando - by TheChaoz - 14.05.2010, 23:54

Forum Jump:


Users browsing this thread: 1 Guest(s)