Levels
#5

Ok, I got what you guys were going by so I did this,

On top:
Quote:

new Level[MAX_PLAYERS];
new Points[MAX_PLAYERS];

Then went down to OnPlayerDeath:
Quote:

Points[killerid] ++;
SetPlayerScore(killerid, Points[killerid]);
switch(GetPlayerScore(killerid))
{

case 100:
{
Level[killerid] ++;
}
case 200:
{
Level[killerid] ++;
}
case 400:
{
Level[killerid] ++;
}
case 800:
{
Level[killerid] ++;
}
case 1600:
{
Level[killerid] ++;
}
case 3200:
{
Level[killerid] ++;
}
case 6400:
{
Level[killerid] ++;
}
case 12800:
{
Level[killerid] ++;
}
}

And then went to OnPlayerDisconnet:
Quote:

dini_IntSet(file, "Level", Level[playerid]);
dini_IntSet(file, "Points", GetPlayerScore(playerid));

For now, this looks good? I currently have no way to test it so ya.. Compiler brought up no errors.
Reply


Messages In This Thread
Levels - by tarez - 21.10.2012, 00:26
Re: Levels - by JaKe Elite - 21.10.2012, 00:31
Re: Levels - by 2KY - 21.10.2012, 00:52
Re: Levels - by JaKe Elite - 21.10.2012, 01:03
Re: Levels - by tarez - 21.10.2012, 01:16
Re: Levels - by 2KY - 21.10.2012, 01:17
Re: Levels - by tarez - 21.10.2012, 01:24
Re: Levels - by 2KY - 21.10.2012, 01:25
Re: Levels - by tarez - 21.10.2012, 01:29

Forum Jump:


Users browsing this thread: 1 Guest(s)