Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //////////////////////////////////////////////////
- /////////////XP Experience FS By Kitten///////////
- /////////////Easy To Edit////////////////////////
- /////////////////////////////////////////////////
- #include <a_samp>
- #define COLOR_GREEN 0x20B2AAAA
- new Text:XP[MAX_PLAYERS];
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" XP Experience FS by kitten");
- print("--------------------------------------\n");
- for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
- {
- XP[playerid] = TextDrawCreate(545.000000, 23.000000, "XP: 0/50");
- TextDrawBackgroundColor(XP[playerid], 255);
- TextDrawFont(XP[playerid], 1);
- TextDrawLetterSize(XP[playerid], 0.400000, 1.700000);
- TextDrawColor(XP[playerid], -1);
- TextDrawSetOutline(XP[playerid], 0);
- TextDrawSetProportional(XP[playerid], 1);
- TextDrawSetShadow(XP[playerid], 1);
- }
- return 1;
- }
- public OnFilterScriptExit()
- {
- for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
- {
- TextDrawHideForAll(XP[playerid]);
- TextDrawDestroy(XP[playerid]);
- }
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- TextDrawShowForPlayer(playerid,XP[playerid]);
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- new msg[64];
- new score = GetPlayerScore(killerid);
- SetPlayerScore(killerid, score+1);
- format(msg, sizeof(msg),"XP: %d/50",score+1);
- TextDrawSetString(XP[killerid],msg);
- GivePlayerMoney(killerid, 12000);
- GameTextForPlayer(killerid, "~p~1+ ~w~XP Experience! ~n~~g~+$12000!!",6000,4);
- if(GetPlayerScore(killerid) == 10)
- {
- GivePlayerWeapon(killerid,31,1000);
- GameTextForPlayer(killerid,"~r~ XP AWARDS ~n~ ~w~ M4 Unlocked",6000,3);
- new name[MAX_PLAYER_NAME], string[100];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "Player * %s Has Been XP Awared 10 Kills ** m4 unlocked for him", name);
- SendClientMessageToAll(COLOR_GREEN, string);
- }
- if(GetPlayerScore(killerid) == 20)
- {
- GivePlayerWeapon(killerid,30,1000);
- GameTextForPlayer(killerid,"~r~ XP AWARDS ~n~ ~w~ AK47 Unlocked",6000,3);
- new name[MAX_PLAYER_NAME], string[100];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "Player * %s Has Been XP Awared 20 Kills ** ak47 unlocked for him", name);
- SendClientMessageToAll(COLOR_GREEN, string);
- }
- if(GetPlayerScore(killerid) == 30)
- {
- GivePlayerWeapon(killerid,27,1000);
- GameTextForPlayer(killerid,"~r~ XP AWARDS ~n~ ~w~ Combat Shotgun Unlocked",6000,3);
- new name[MAX_PLAYER_NAME], string[100];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "Player * %s Has Been XP Awared 30 Kills ** Combat Shotgun unlocked for him", name);
- SendClientMessageToAll(COLOR_GREEN, string);
- }
- if(GetPlayerScore(killerid) == 40)
- {
- GivePlayerWeapon(killerid,24,1000);
- GameTextForPlayer(killerid,"~r~ XP AWARDS ~n~ ~w~ Desert Eagle Unlocked",6000,3);
- new name[MAX_PLAYER_NAME], string[100];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "Player * %s Has Been XP Awared 40 Kills ** Desert Eagle unlocked for him", name);
- SendClientMessageToAll(COLOR_GREEN, string);
- }
- if(GetPlayerScore(killerid) == 50)
- {
- GivePlayerWeapon(killerid,32,1000);
- GameTextForPlayer(killerid,"~r~ XP AWARDS ~n~ ~w~ Tec 9 Unlocked",6000,3);
- new name[MAX_PLAYER_NAME], string[100];
- new name2[MAX_PLAYER_NAME], string2[100];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "Player * %s Has Been XP Awared 50 Kills ** Tec 9 unlocked for him", name);
- format(string2, sizeof(string2), "~y~ Player %s Has Finshed XP Experience 50 kills",name2);
- GameTextForAll(string2,6000,3);
- SendClientMessageToAll(COLOR_GREEN, string);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement