Set Player Score.
#10

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;
}
Reply


Messages In This Thread
Set Player Score. - by propilot - 23.12.2010, 01:11
Re: Set Player Score. - by willsuckformoney - 23.12.2010, 01:59
Re: Set Player Score. - by propilot - 23.12.2010, 02:36
Re: Set Player Score. - by stix - 23.12.2010, 03:31
Re: Set Player Score. - by propilot - 23.12.2010, 03:36
Re: Set Player Score. - by stix - 23.12.2010, 03:37
Re: Set Player Score. - by propilot - 23.12.2010, 03:38
Re: Set Player Score. - by willsuckformoney - 23.12.2010, 03:52
Re: Set Player Score. - by propilot - 23.12.2010, 03:54
Re: Set Player Score. - by Joe Staff - 23.12.2010, 03:57

Forum Jump:


Users browsing this thread: 1 Guest(s)