22.08.2011, 17:17
Teleport courtesy of Kalzifer (Thanks!)
Code:
if (strcmp(cmdtext, "/racetrack", true)==0) { if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) { SendClientMessage(playerid,color,"You should be a driver for this action!"); } else if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT || PLAYER_STATE_DRIVER) { new getv = GetPlayerVehicleID(playerid); SetVehiclePos(getv,3433.6111,-1816.7399,12.7850); SetPlayerPos(playerid,3433.6111,-1816.7399,12.7850); PutPlayerInVehicle(playerid,getv,0); } return 1; }