23.08.2011, 00:34
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; }