Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //============================================================================//
- /*------------------------------------------------------------------------------
- :: MostWanted System ::
- -- VenomMancer A.K.A Angga_Lombongkaehe --
- Credits:
- + a_samp : SA-MP Team
- + Streamer : Icognito
- + VenomMancer : Make this FS
- ** Dont Remove the credits..
- ------------------------------------------------------------------------------*/
- //=============================================================================//
- /*----------------------------------------------------------------------------*/
- // Includes
- /*----------------------------------------------------------------------------*/
- #include <a_samp>
- #include <streamer>
- /*----------------------------------------------------------------------------*/
- // Variabel
- /*----------------------------------------------------------------------------*/
- new MostKill[MAX_PLAYERS];
- new Text3D:MWTD[MAX_PLAYERS];
- /*----------------------------------------------------------------------------*/
- // Callbacks
- /*----------------------------------------------------------------------------*/
- public OnFilterScriptInit()
- {
- print("\n---------------------------------------------");
- print(" MostWanted System by : VenomMancer A.K.A Angga.L Loaded");
- print("----------------------------------------------\n");
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- // Please dont remove this .. :)
- SendClientMessage(playerid,0xCC66FFFF,"** On this server used MOST-WANTED system by : VenomMancer !");
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("\n---------------------------------------------");
- print(" MostWanted System by : VenomMancer A.K.A Angga.L Unloaded");
- print("----------------------------------------------\n");
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- MostKill[playerid] = 0; // make playerid MostKill count = 0
- MostKill[killerid] ++; // make killerid MostKill count ++
- MostStar(killerid); // MostStar Callback
- MostStar(playerid); // MostStar Callback
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- DestroyDynamic3DTextLabel(MWTD[playerid]);
- MostKill[playerid] == 0;
- return 1;
- }
- forward MostStar(playerid);
- public MostStar(playerid)
- {
- if(MostKill[playerid] == 0) // if player's MostKill = 0
- {
- SetPlayerWantedLevel(playerid,0);
- DestroyDynamic3DTextLabel(MWTD[playerid]);
- }
- else if(MostKill[playerid] == 1) // if player's MostKill = 1
- {
- SetPlayerWantedLevel(playerid,1); // Set the player's Wanted Level = 1
- }
- else if(MostKill[playerid] == 2) // if player's MostKill = 2
- {
- SetPlayerWantedLevel(playerid,2); // Set the player's Wanted Level = 2
- }
- else if(MostKill[playerid] == 3) // if player's MostKill = 3
- {
- SetPlayerWantedLevel(playerid,3); // Set the player's Wanted Level = 3
- }
- else if(MostKill[playerid] == 4) // if player's MostKill = 4
- {
- SetPlayerWantedLevel(playerid,4); // Set the player's Wanted Level = 4
- }
- else if(MostKill[playerid] == 5) // if player's MostKill = 5
- {
- SetPlayerWantedLevel(playerid,5); // Set the player's Wanted Level = 5
- }
- else if(MostKill[playerid] == 6) // if player's MostKill = 6
- {
- new str[256];
- format(str,256,"{FF0000}[SERVER] : {FFFFFF}'%s[%i]' now is MOST-WANTED! :: [PRO Death-Match] ::",GetNameEx(playerid),playerid);
- SendClientMessageToAll(-1,str);
- SetPlayerArmour(playerid,100);
- SetPlayerHealth(playerid,100);
- SetPlayerWantedLevel(playerid,6); // Here the MOST-WANTED
- MWTD[playerid] = CreateDynamic3DTextLabel("{00FF00}Most-Wanted", -1, 0.0, 0.0, -0.9, 20, playerid, INVALID_VEHICLE_ID, 0, -1, -1, -1, 25.0);
- }
- else if(MostKill[playerid] > 6)
- {
- }
- return 1;
- }
- stock GetNameEx(playerid)
- {
- new xName[MAX_PLAYER_NAME];
- GetPlayerName(playerid,xName,MAX_PLAYER_NAME);
- return xName;
- }
- // Please dont remove The credits!!!..
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement