I need help... How to create basic script, when every 100 you receive extra award. Only I want that will be 100, 200, 300, and always for every 100, but to infinity.
No like this..
function example(player,test)
{
if (test == 1) ...
if (test == 2) ...
}
or
function example(player,test)
{
switch(test)
{
case 1: ...
case 2: ...
}
}
and end script on 2. I need infinity loop example. But idk, how do this.
Is This?
function onPlayerJoin( player )
{
NewTimer( "reward", 10000, 1,player );
}
function reward( player )
{
player.Cash += 600;
}
if( test % 100 == 0 ) // your code here this will do it for every 100 ammount.
@FinchDon lol.
what bro any problem in my code ?
@Doom_Killer thx. That was easier than I think.
Quote from: FinchDon on Aug 14, 2015, 10:31 AMwhat bro any problem in my code ?
for example: server can give prize 100x for player, because "test" have the same value...
Please @FarisDon, don't post if you don't understand the question. Even the title had the number 100 in it, and yet you post something completely irrelevant that does not include the number 100 at all.
Quote from: Thijn on Aug 14, 2015, 04:20 PMPlease @FarisDon, don't post if you don't understand the question. Even the title had the number 100 in it, and yet you post something completely irrelevant that does not include the number 100 at all.
/*100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100,
100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100,
100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100,
100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100,
100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100,
100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100,
100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100*/
function onPlayerJoin( player )
{
NewTimer( "reward", 10000, 1,player );
}
function reward( player )
{
player.Cash += 600;
}
Enjoy, this contains many 100s.