02.02.2015, 14:26
Hello
I wanna now why if I am in dm or I am not driver it teleports me
How to make that it won't?
I wanna now why if I am in dm or I am not driver it teleports me
How to make that it won't?
Код:
public CheckTeleporting(playerid) { if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return GameTextForPlayer(playerid,"~w~You ~r~aren't ~w~driver!",3000,5); if(InDM[playerid] == 1) return GameTextForPlayer(playerid, "~g~Type /kill first",2000,5); return 1; } CMD:ap(playerid) { CheckTeleporting(playerid); SetPlayerVirtualWorld(playerid,0); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,-2097.3215,-2518.6458,30.1997); new string[256], pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof(pname)); new vehicleid = GetPlayerVehicleID(playerid); SetVehiclePos(vehicleid,-2097.3215,-2518.6458,30.1997); SetPlayerFacingAngle(playerid, 46.9913); SetVehicleZAngle(vehicleid, 46.9913); PutPlayerInVehicle(playerid, vehicleid, 0); return 1; }