#9

If you are not using ZCMD/DCMD then yes OnPlayerCommandText.

pawn Code:
if (!strcmp(cmdtext, "/race", true))
  {
    new Float: x, Float: y, Float: z;
       
    GetPlayerPos(GOTOPLAYER, x, y, z);
       
    if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), x, y, z); }
    else { SetPlayerPos(playerid, x, y, z); }
    return 1;
    }
GETPLAYERPOS would be the ID of the player you want to warp them to. If this is not the case, set the x, y and z values to where you want them to warp in place of GetPlayerPos.
Reply


Messages In This Thread
help - by noder51 - 14.10.2011, 20:35
Re: help - by Tom1412 - 14.10.2011, 21:05
Re: help - by noder51 - 14.10.2011, 21:35
Re: help - by Kostas' - 14.10.2011, 21:42
Re: help - by noder51 - 14.10.2011, 21:43
Re: help - by noder51 - 14.10.2011, 21:45
Re: help - by Kostas' - 14.10.2011, 21:46
Re: help - by noder51 - 15.10.2011, 06:10
Re: help - by GrimR - 15.10.2011, 06:57
Re: help - by $India$ - 15.10.2011, 07:39
Re: help - by noder51 - 15.10.2011, 15:24
Re: help - by Kostas' - 15.10.2011, 15:34
Re: help - by Mr_Scripter - 15.10.2011, 15:48

Forum Jump:


Users browsing this thread: 1 Guest(s)