03.06.2011, 14:18
when pressing G it also kills the person.
Help pl0x?
Help pl0x?
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
for(new i; i < GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInVehicle(i,vehicleid) && GetPlayerState(i) == PLAYER_STATE_DRIVER && GetPlayerTeam(i) == GetPlayerTeam(playerid))
{
SetPlayerHeatlh(playerid, 0);
}
}
}
return 1;
}