New Idea
#10

ite dont laugh plz im realy shit at this stuff xD


Code:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>
#include <gvar>
#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Blank Filterscript by your name here");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print(" Blank Gamemode by your name here");
	print("----------------------------------\n");
}

#endif

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, give him a weapon  with id 22 and 50 ammo.
    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;
}
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: 2 Guest(s)