10.06.2012, 17:17
Код:
if (strcmp("/sfa", cmdtext, true, 10) == 0) { new vehicle; vehicle = GetPlayerVehicleID(playerid); if(IsPlayerInAnyVehicle(vehicle)) { SetVehiclePos(GetPlayerVehicleID(playerid),-1205.8723,-163.5191,14.1484); if(IsPlayerInAnyVehicle(vehicle)) SendClientMessage(playerid,COLOR_GREY,"You're currently inside a vehicle."); } else { SetPlayerPos(playerid, -1205.8723,-163.5191,14.1484); } SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(playerid)); SetPlayerInterior(playerid,GetPlayerInterior(playerid)); SetVehicleVirtualWorld(playerid,GetPlayerVirtualWorld(playerid)); return 1; }