25.11.2011, 20:17
pawn Код:
public OnVehicleDeath(vehicleid, killerid)
{
if(CarSystem[vehicleid][cPerma] == 1)
for(new i = 0; i < MAX_PLAYERS; i++)
{
new string[128];
format(string, sizeof(string), "%d",gLastCar[killerid]);
if(PlayerInfo[i][pCarKeys] == string)
PlayerInfo[i][pCarKeys] == 9999;
DeleteCar(vehicleid);
}
return 1;
}
When the vehicle is destroyed. I want the string to find what player online has the car keys (player owned vehicle) of the car destroyed.
That is how i am trying to check throughout the server who has the vehicle keys.
pawn Код:
format(string, sizeof(string), "%d",gLastCar[killerid]);
if(PlayerInfo[i][pCarKeys] == string)
pawn Код:
if(PlayerInfo[i][pCarKeys] == string