vehicleid
#1

PHP код:
public OnPlayerDisconnect(playeridreason)
{
    
savevehs(vehicleid);
    return 
1;

is there any way to add a new vehicleid = that would get the vehicleid or model ?
Reply
#2

GetPlayerVehicleID(playerid)
Reply
#3

Quote:
Originally Posted by RogueDrifter
Посмотреть сообщение
GetPlayerVehicleID(playerid)
I forgot to mention that it has to be not only the vehicle the player is in
Reply
#4

PHP код:
new vehicleid;
vehicleid GetPlayerVehicleID(playerid); 
PHP код:
new vehicleidvehiclemodel;
vehicleid GetPlayerVehicleID(playerid);
vehiclemodel GetVehicleModel(vehicleid); 
Quote:
Originally Posted by Kevinas100
Посмотреть сообщение
I forgot to mention that it has to be not only the vehicle the player is in
You gotta save the vehicleid in a global "new vehicleid;" of the vehicles you want to save then. And use that.
Reply
#5

I think (but i'm, not sure), that if you will use this function in OnPlayerDisconnect, it can be = underfined.

Test it.
But the best way to write it into global variable in OnPlayerEnterVehicle/OnPlayerExitVehicle/OnPlayerStateChange.

And you can do with this variable in OnPlayerDisconnect what you want.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)