Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(listitem == 2)
- {
- if(OnDuty[playerid] == 0) return SendClientMessage(playerid, COLOR_ERROR, "*So podera se equipar apos Bater o Cartão.");
- new sendername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if (PlayerInfo[playerid][pRank] == 1)
- {
- format(string, sizeof(string), "* %s Pegou Equipamento de Policial.", sendername);
- ProxDetector(100.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 43, 10);
- GivePlayerWeapon(playerid, 24, 75);
- GivePlayerWeapon(playerid, 25, 50);
- GivePlayerWeapon(playerid, 29, 400);
- SendClientMessage(playerid,COLOR_GREEN,"Voce pegou seu equipamento de Policial!");
- return 1;
- }
- if (PlayerInfo[playerid][pRank] == 2)
- {
- format(string, sizeof(string), "* %s Pegou Equipamento de Policial.", sendername);
- ProxDetector(100.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 43, 20);
- GivePlayerWeapon(playerid, 24, 100);
- GivePlayerWeapon(playerid, 25, 40);
- GivePlayerWeapon(playerid, 29, 250);
- GivePlayerWeapon(playerid, 31, 350);
- SendClientMessage(playerid,COLOR_GREEN,"Voce pegou seu equipamento de Policial!");
- return 1;
- }
- if (PlayerInfo[playerid][pRank] == 3)
- {
- format(string, sizeof(string), "* %s Pegou Equipamento de Policial.", sendername);
- ProxDetector(100.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 43, 30);
- GivePlayerWeapon(playerid, 24, 140);
- GivePlayerWeapon(playerid, 25, 60);
- GivePlayerWeapon(playerid, 29, 320);
- GivePlayerWeapon(playerid, 31, 380);
- SendClientMessage(playerid,COLOR_GREEN,"Voce pegou seu equipamento de Policial!");
- return 1;
- }
- if (PlayerInfo[playerid][pRank] == 4)
- {
- format(string, sizeof(string), "* %s Pegou Equipamento de Policial.", sendername);
- ProxDetector(100.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 43, 40);
- GivePlayerWeapon(playerid, 24, 160);
- GivePlayerWeapon(playerid, 25, 75);
- GivePlayerWeapon(playerid, 29, 350);
- GivePlayerWeapon(playerid, 31, 400);
- SendClientMessage(playerid,COLOR_GREEN,"Voce pegou seu equipamento de Policial!");
- return 1;
- }
- if (PlayerInfo[playerid][pRank] == 5)
- {
- format(string, sizeof(string), "* %s Pegou Equipamento de Policial.", sendername);
- ProxDetector(100.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 43, 50);
- GivePlayerWeapon(playerid, 24, 180);
- GivePlayerWeapon(playerid, 25, 90);
- GivePlayerWeapon(playerid, 29, 380);
- GivePlayerWeapon(playerid, 31, 500);
- SendClientMessage(playerid,COLOR_GREEN,"Voce pegou seu equipamento de Policial!");
- return 1;
- }
- if (PlayerInfo[playerid][pRank] == 6)
- {
- format(string, sizeof(string), "* %s Pegou Equipamento de Policial.", sendername);
- //format(string, sizeof(string), "* %s Pegou Equipamento de Policial.", pNome(playerid));
- ProxDetector(100.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 43, 100);
- GivePlayerWeapon(playerid, 24, 200);
- GivePlayerWeapon(playerid, 25, 150);
- GivePlayerWeapon(playerid, 29, 400);
- GivePlayerWeapon(playerid, 31, 600);
- GivePlayerWeapon(playerid, 34, 20);
- SendClientMessage(playerid,COLOR_GREEN,"Voce pegou seu equipamento de Policial!");
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment