29.06.2015, 19:50
Hello, I am developing a system, and I'm a simple doubt, using the code below ..
the intention is to take the lives of all who are in the same vehicle as the "playerid" (driver), the player (passenger) will receive some kind of damage? if not, what is the solution?
PHP код:
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid))
{
GetPlayerHealth(i, health), SetPlayerHealth(i, health - 7);
////
GetPlayerHealth(playerid, health), SetPlayerHealth(playerid, health - 7);
}
}