Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmd, "/wanted", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
- {
- SendClientMessage(playerid, COLOR_GREY, "Wanted List :");
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(WantedLevel[i] >= 1)
- {
- GetPlayerName(i, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "[ID: %d] Name: %s - Wanted Level: %d", i,giveplayer,WantedLevel[i]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_GREY,"You are not Police Departament,Federal Bureau Of Investigations or National Guard !");
- }
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment