06.11.2010, 18:19
Код:
if(strcmp(cmdtext, "/l", true) == 0) { if(stored[playerid] == 1) { if(IsPlayerInAnyVehicle(playerid)) { new vehid = GetPlayerVehicleID(playerid); SetVehiclePos(vehid,storex[playerid],storey[playerid],storez[playerid]); SetVehicleZAngle(vehid,storea[playerid]); SetPlayerFacingAngle(playerid, storea[playerid]); SetCameraBehindPlayer(playerid); } else { SetPlayerInterior(playerid, storeint[playerid]); SetPlayerPos(playerid, storex[playerid],storey[playerid],storez[playerid]); SetPlayerFacingAngle(playerid, storea[playerid]); SetCameraBehindPlayer(playerid); SendClientMessage(playerid, COLOR_LIGHTBLUE, "Wczytałeś swoją pozycję."); } } return 1; }