18.12.2012, 15:34
Код:
if(strcmp(cmdtext,"/skydive",true)==0) { new vehicleid = GetPlayerVehicleID(playerid); new State = GetPlayerState(playerid); if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER) { GameTextForPlayer(playerid,"Sky Dive ._,",4000,6); LinkVehicleToInterior(vehicleid,0); SetPlayerInterior(playerid,0); return SetVehiclePos(vehicleid,3443.69995117,540.90002441,2014.00000000); } SetPlayerPos(playerid,3443.69995117,540.90002441,2014.00000000); SetPlayerInterior(playerid,0); GameTextForPlayer(playerid,"Sky Dive ._,",4000,6); return 1; }