07.03.2010, 03:45
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
...
SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
return 1;
}
pawn Код:
public OnPlayerStateChange(playerid, oldstate, newstate)
{
if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == aquiponeselmodelodeltanke && GetPlayerScore(playerid) < 100)
{
RemovePlayerFromVehicle(playerid);
}
}
return 1;
}