26.09.2009, 14:48
So i made that scipt
And when i press key action it wont work can u pls tell me what the proplem is thanx
Код:
forward Flip(); public Flip() { new keys, updown, leftright; for(new playerid = 0; playerid < MAX_PLAYERS; playerid++) { if(IsPlayerConnected(playerid)) { GetPlayerKeys(playerid, keys, updown, leftright); if(keys == KEY_ACTION) { new VehicleID, Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID, X, Y, Z); SetVehicleZAngle(VehicleID, 0); } } } }