Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new hunted[MAX_PLAYERS], id, name[MAX_PLAYER_NAME]
- CMD:allhunt(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >=3)
- {
- new gun1, gun2, gun3, gun4, Float:hp, Float:armor, string[128], admin[MAX_PLAYER_NAME], string[128];
- if(sscanf(params, "uffdddd", id, gun1, gun2, gun3, gun4, hp, armor) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /allhunt [playerid/partofname] [health] [armor] [gun1] [gun2] [gun3] [gun4]");
- if(gun1 < 1 || gun1 > 47) return SendClientMessage(playerid, COLOR_GREY, "Don't go below 1 or above 47.");
- if(gun2 < 1 || gun2 > 47) return SendClientMessage(playerid, COLOR_GREY, "Don't go below 1 or above 47.");
- if(gun3 < 1 || gun3 > 47) return SendClientMessage(playerid, COLOR_GREY, "Don't go below 1 or above 47.");
- if(gun4 < 1 || gun4 > 47) return SendClientMessage(playerid, COLOR_GREY, "Don't go below 1 or above 47.");
- GetPlayerName(id, admin, sizeof(admin));
- GetPlayerName(id, name, sizeof(admin));
- SetPlayerColor(id, COLOR_PINK);
- {
- if(PlayerInfo[playerid][pAdmin] >=1)
- {
- format(string, sizeof(string), "{CD5C5C}AdmCmd: %s has started a hunt on %s.", admin, name);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- format(string, sizeof(string), "{FF1493}Kill the hunted %s to earn prize!", name);
- SendClientMessageToAll(COLOR_PINK, string);
- Hunted[id] = 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command!");
- }
- return 1;
- }
- OnPlayerDeath(playerid, killerid);
- {
- if(Hunted[id] = 1)
- {
- new string[128], killer[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "Father, please forgive %s as he killed the hunted %s.", killer, name);
- SendClientToAll(COLOR_YELLOW, string);
- PlayerInfo[killerd][pPot] ++;
- PlayerInfo[killerd][pCrack] ++;
- SetPlayerColor(id, COLOR_WHITE);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement