04.11.2009, 17:24
pawn Код:
if(!ispassenger && IsDriverInVehicle(vehicleid))
{
SetPlayerHealth(playerid, 0);
}
pawn Код:
IsDriverInVehicle(vehicleid)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == PLAYER_STATE_DRIVER) return 1;
}
return 0;
}