23.12.2010, 03:57
hasspawned is useless if you're only adding points for flying (If the player is flying than of course he has spawned)
pawn Код:
public gc(playerid)
{
new vehmod;
for(new i; i < MAX_PLAYERS; i++)
{
if(GetPlayerState(playerid)!=PLAYER_STATE_DRIVER)continue; //if player isn't driving, don't count it
vehmod=GetVehicleModel(GetPlayerVehicleID(playerid));
if((vehmod==592)||(vehmod==577)) //Continue this pattern for 511,512,593,520,553,476,519,460,513,548,425,417,487,488,497,563,447,469
{
SetPlayerScore(i, GetPlayerScore(i) + 1);
SendClientMessage(playerid,0xFFFFFFFF,"You recieved +1 score for flying!");
}
}
return 1;
}