New Idea
#6

Quote:
Originally Posted by iPLEOMAX
View Post
Read everything with it's meaning.
pawn Code:
new gVar_Rank[MAX_PLAYERS]; //This is the variable where all the player's rank is stored.

public OnPlayerDeath(playerid, killerid, reason) //What all things happen when a player dies?
{
    gVar_Rank[killerid]++; //The Rank of killer goes up++
    gVar_Rank[playerid]--;  //The Rank of the person died gets low--
     
    if(gVar_Rank[killerid] < 10) { GivePlayerWeapon(killerid, 22, 50 } //if killer's rank is less than 10.
    else if (gVar_Rank[killerid] == 10) { GivePlayerWeapon(killerid, 25, 50 } //if killer's rank is '10', it gives him a weapon with id 25 and 50 ammo.
    else if (gVar_Rank[killerid] == 20) { GivePlayerWeapon(killerid, 25, 50 } //if killer's rank is '20', it gives him a weapon with id 25 and 50 ammo again.
    return 1;
}
Cheers man
Reply


Messages In This Thread
New Idea - by xbox360boy66 - 22.08.2011, 23:17
Re: New Idea - by Steven82 - 22.08.2011, 23:35
Re: New Idea - by Kush - 22.08.2011, 23:39
Re: New Idea - by xbox360boy66 - 22.08.2011, 23:59
Re: New Idea - by iPLEOMAX - 23.08.2011, 00:05
Re: New Idea - by xbox360boy66 - 23.08.2011, 00:08
Re: New Idea - by Kush - 23.08.2011, 00:10
Re: New Idea - by xbox360boy66 - 23.08.2011, 00:16
Re: New Idea - by iPLEOMAX - 23.08.2011, 00:21
Re: New Idea - by xbox360boy66 - 23.08.2011, 00:34

Forum Jump:


Users browsing this thread: 1 Guest(s)