FOREACH
#5

Quote:
Originally Posted by Lucky13
Посмотреть сообщение
I'm not pretty sure but what's that IntSTC from foreach? ( Sorry if it's a dumb question, I got a break of SA:MP scripting and I totally forgot some basic stuff )
It's ok. it's iterator.

https://sampforum.blast.hk/showthread.php?tid=570937

CMD:
Код:
CMD:event(playerid,params[])
{
    if(PlayerInfo[playerid][PlayerMode] != 2) return GameTextForPlayer(playerid,"~g~you are not in freeroam",4000,3);
    if(PlayerInfo[playerid][PlayerInEvent] != 0) return GameTextForPlayer(playerid,"~g~you already in event",4000,3);
    switch(Event[eType])
    {
        case 1: //removed
        case 2: //removed
        case 3:
        {
            PlayerInfo[playerid][pInCriminalFight] = 0;
            PlayerInfo[playerid][pCriminalMoney] = 0;
            PlayerInfo[playerid][PlayerEventScore] = 0;
            PlayerInfo[playerid][PlayerInEvent] = 3;
            Iter_Add(InSTC,playerid);
            SendClientMessage(playerid,-1,"The Vehicles Stolen Challenge will begin shortly. Steal the most vehicles.");
        }
    }
    return true;
}
Reply


Messages In This Thread
FOREACH - by Kqly - 21.01.2016, 21:54
Re: FOREACH - by Lucky13 - 21.01.2016, 21:56
Re: FOREACH - by Kqly - 21.01.2016, 21:57
Re: FOREACH - by Lucky13 - 21.01.2016, 21:59
Re: FOREACH - by Kqly - 21.01.2016, 22:01
Re: FOREACH - by Lucky13 - 21.01.2016, 22:04
Re: FOREACH - by Lucky13 - 21.01.2016, 22:06
Re: FOREACH - by Kqly - 21.01.2016, 22:35

Forum Jump:


Users browsing this thread: 4 Guest(s)