New Idea
#3

PHP Code:
new gVar_Rank[MAX_PLAYERS]; //an array defined as a variable
public OnPlayerDeath(playeridkilleridreason// on player death function with set parameters (player, the killer, the reason)
{
    
gVar_Rank[killerid]++; // will add 1 value when the killer kills a person
    
gVar_Rank[playerid]--; // will remove 1 value to the player in which dies
    
    
if(gVar_Rank[killerid] < 10) { GivePlayerWeapon(killerid2250 // if the killer's rank is less than 10 they will get a pistol
    
else if (gVar_Rank[killerid] == 10 GivePlayerWeapon(killerid2550 // if rank value 10 they will get a shotgun
    
else if (gVar_Rank[killerid] == 20 GivePlayerWeapon(killerid2550 // if 20 they will get deagle
    
return 1//returning the compound code as true.

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)