Onvehicledeath
#1

I have a big problem
when the car dies the server network data with the server is lost
This happens when a ownablecar is explode but when a not ownable car is explode all is ok

that's the script
Код:
public OnVehicleDeath(vehicleid,killerid)
{
    for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
    {
    new idcar =  GetPlayerVehicleID(playerid);
    if(IsAnOwnableCar(vehicleid) && CarInfo[vehicleid][cOwned] == 1)
	{
    CarInfo[idcar][cTD]++;
    OnPropUpdate(); SavePlayerData(playerid);
    }
    }
    return 1;
}
Reply
#2

oh thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)