-other-Mizi_CZ 0 Odesláno: 2. Září, 2008 Share Odesláno: 2. Září, 2008 Už jsem viděl že jde udělat když někdo spadne z moto tak ho to hodí z5 na to moto/kolo ale když dá enter už ho to nevrátí nevíte jak na to ?? Link to comment Share on other sites More sharing options...
0 chytrak 14 Odesláno: 2. Září, 2008 Share Odesláno: 2. Září, 2008 Nahodou vim #define Driver 0 #define Passanger 2 new InCar[MAX_PLAYERS]; new WhatCar[MAX_PLAYERS]; public OnPlayerExitVehicle(playerid, vehicleid) { InCar[playerid] = 0; return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { if(oldstate == PLAYER_STATE_DRIVER) { if(newstate == PLAYER_STATE_ONFOOT) { if(InCar[playerid] == 1) { PutPlayerInVehicle(playerid, WhatCar[playerid], Driver); } } } if(oldstate == PLAYER_STATE_PASSENGER) { if(newstate == PLAYER_STATE_ONFOOT) { if(InCar[playerid] == 1) { PutPlayerInVehicle(playerid, WhatCar[playerid], Passanger); } } } if(oldstate == PLAYER_STATE_ONFOOT) { if(newstate == PLAYER_STATE_DRIVER || PLAYER_STATE_PASSENGER) { InCar[playerid] = 1; WhatCar[playerid] = GetPlayerVehicleID(playerid); } } return 1; } Link to comment Share on other sites More sharing options...
0 -other-Mizi_CZ 0 Odesláno: 2. Září, 2008 Author Share Odesláno: 2. Září, 2008 díky moc funguje (ještě aby ne ) Link to comment Share on other sites More sharing options...
Dotaz
-other-Mizi_CZ 0
Už jsem viděl že jde udělat když někdo spadne z moto tak ho to hodí z5 na to moto/kolo ale když dá enter už ho to nevrátí nevíte jak na to ??
Link to comment
Share on other sites
2 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now