/goto help variable
#4

pawn Код:
if(strcmp(cmd, "/goto", true) == 0)
  {
   new str[128];
   tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
      SendClientMessage(playerid, 0xbbff0000 , "/goto [playerid]");
      return 1;
    }
    new tmpplayer = strval(tmp);
    new Float:tmpx, Float:tmpy, Float:tmpz;
    new name[MAX_PLAYER_NAME];
    GetPlayerName(tmpplayer, name, sizeof(name));
    GetPlayerPos(tmpplayer, tmpx, tmpy, tmpz);
    SetPlayerPos(playerid, tmpx, tmpy, tmpz+1);
    format(str, sizeof(str), "You have teleported to %s(ID:%d)", name, tmpplayer);
    SendClientMessage(playerid, 0x00bbbb00 , str);
    return 1;
  }
Reply


Messages In This Thread
/goto help variable - by Kar - 12.06.2010, 21:51
Re: /goto help variable - by Hiddos - 12.06.2010, 21:53
Re: /goto help variable - by Kar - 12.06.2010, 21:55
Re: /goto help variable - by Carlton - 12.06.2010, 21:58
Re: /goto help variable - by (SF)Noobanatior - 12.06.2010, 21:58
Re: /goto help variable - by Kar - 12.06.2010, 21:59
Re: /goto help variable - by Carlton - 12.06.2010, 22:01
Re: /goto help variable - by Kar - 12.06.2010, 22:02

Forum Jump:


Users browsing this thread: 1 Guest(s)