Quote:
Originally Posted by Kush
PHP Code:
new gVar_Rank[MAX_PLAYERS];
public OnPlayerDeath(playerid, killerid, reason)
{
gVar_Rank[killerid]++;
gVar_Rank[playerid]--;
if(gVar_Rank[killerid] < 10) { GivePlayerWeapon(killerid, 22, 50 }
else if (gVar_Rank[killerid] == 10 { GivePlayerWeapon(killerid, 25, 50 }
else if (gVar_Rank[killerid] == 20 { GivePlayerWeapon(killerid, 25, 50 }
return 1;
}
|
What does that do. could you possible explain it to me..? Im sucha noob at this. im just gonna pop it in pawno and compile and GOO... :P