Resurse CS,Jocuri Online Si Multe Altele


Share | 
 

 [SA:MP] Cum sa scada wantedul odata la 5 minute [GF]

View previous topic View next topic Go down 
AuthorMessage
xPlode
Admin Forum
Admin Forum


Posts : 265
Join date : 26/08/2011
Age : 19

PostSubject: [SA:MP] Cum sa scada wantedul odata la 5 minute [GF]   Sun Sep 04, 2011 6:17 am

Acest tutoriale a fost facut la cerere. Cum sa scada wantedul din 5 in 5 minute. Deci scriptul va venii in felul urmator:

La public OnGameModeInit() adaugam timerul:
Code:
SetTimer("dLevelEx", 300000, 1);

iar la sfarsitul modului:
Code:
forward dLevelEx();
public dLevelEx()
{
    new whd;
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            whd = WantedLevel[i];
            if (whd>0)
            {
                whd--;
                SetPlayerWantedLevel(i,whd);
                WantedLevel[i] = whd;
            }
        }
    }
}
Back to top Go down
View user profile http://csresurse.4rumer.ro
 
[SA:MP] Cum sa scada wantedul odata la 5 minute [GF]
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Resurse CS,Jocuri Online Si Multe Altele :: Alte Jocuri :: San Andreas / SAMP :: TUTORIALE San Andreas / SAMP-
Jump to: