My Scripting Questions
#4

pawn Код:
new bool:landstal[MAX_PLAYERS];

if(GetVehicleModel(vehicleid) == 400)
    {
        if(landstal[playerid] == false || !landstal[playerid])
        {
            landstal[playerid] = true;
            SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
            return 0;
        }
        else return 1;
    }
If the variable landstal for a certain player gets set to false in other code, it should be the reason the player gets a +1 whenever he enters
Reply


Messages In This Thread
My Scripting Questions - by xZacharias - 18.11.2011, 10:53
Re: My Scripting Questions - by CSSI - 18.11.2011, 10:56
Re: My Scripting Questions - by moadi - 18.11.2011, 10:57
Re: My Scripting Questions - by moadi - 18.11.2011, 11:00
Re: My Scripting Questions - by xZacharias - 18.11.2011, 11:12
Re: My Scripting Questions - by xZacharias - 18.11.2011, 11:33
Re: My Scripting Questions - by xZacharias - 18.11.2011, 19:08

Forum Jump:


Users browsing this thread: 1 Guest(s)