Italian American Mafia RolePlay
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Italian American Mafia RolePlay

Italian American Mafia RolePlayIp:85.17.233.194:7746
 
HomePortalLatest imagesSearchRegisterLog in

 

 Police suggestions

Go down 
2 posters
AuthorMessage
Nino

Nino


Posts : 3
Join date : 2008-12-30

Police suggestions Empty
PostSubject: Police suggestions   Police suggestions I_icon_minitimeTue Dec 30, 2008 9:01 pm

New /frisk

Code:
if(strcmp(cmd,"/frisk",true)==0)
    {
        if(IsPlayerConnected(playerid))
       {
           tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, COLOR_WHITE, "[USAGE]: /frisk [id]");
            return 1;
         }
         giveplayerid = ReturnUser(tmp);
         if(IsPlayerConnected(giveplayerid))
         {
            if(giveplayerid != INVALID_PLAYER_ID)
            {
                if (ProxDetectorS(8.0, playerid, giveplayerid))
               {
                   /*if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "ERROR: You cannot Frisk yourself."); return 1; }*/
                   GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                  GetPlayerName(playerid, sendername, sizeof(sendername));
                   new text1[20], text2[20], text3[20];
                   if(PlayerInfo[giveplayerid][pDrugs] > 0) { text1 = "Drugs"; } else { text1 = "No Drugs"; }
                   if(PlayerInfo[giveplayerid][pPhone] > 0) { text4 = "Phone"; } else { text2 = "No Phone"; }
                   if(PlayerInfo[giveplayerid][pLaptop] > 0) { text5 = "Laptop"; } else { text2 = "No Laptop"; }
                    format(string, sizeof(string), "%s ::: %s | %s | %s",giveplayer, text1, text2, text4, text5);
                    SendClientMessage(playerid, COLOR_YELLOW, string);
                    new Player_Weapons[13];
                   new Player_Ammos[13];
                   new i;
                   for(i = 1;i <= 12;i++)
                   {
                  GetPlayerWeaponData(playerid,i,Player_Weapons[i],Player_Ammos[i]);
                  if(Player_Weapons[i] != 0)
                     {
                        new weaponName[256];
                        GetWeaponName(Player_Weapons[i],weaponName,255);
                        format(string,255,"Weapon Name: %s | Weapon Ammo: %d",weaponName,Player_Ammos[i]);
                        SendClientMessage(playerid,0x1833D5AA,string);
                     }
                   }
                  format(string, sizeof(string), "%s has frisked %s for any illegal items.", sendername ,giveplayer);
                  ProxDetector(30.0, playerid, string, COLOR_ME,COLOR_ME,COLOR_ME,COLOR_ME,COLOR_ME);
                  return 1;
               } else {
                   SendClientMessage(playerid, COLOR_GREY, "  That player is not near you !");
                   return 1;
               }
            }
         } else {
               SendClientMessage(playerid, COLOR_GREY, "  That player is Offline !");
               return 1;
           }
      }
       return 1;
    }//Function made by Stefan

I stold this from another server xD but who cares?

Here is a image:
Police suggestions 86726011
Back to top Go down
Admin
Admin



Posts : 29
Join date : 2008-12-30

Police suggestions Empty
PostSubject: Re: Police suggestions   Police suggestions I_icon_minitimeTue Jan 06, 2009 11:38 pm

Back to top Go down
https://iam-rp.board-directory.net
 
Police suggestions
Back to top 
Page 1 of 1
 Similar topics
-
» Police Rules
» Server suggestions

Permissions in this forum:You cannot reply to topics in this forum
Italian American Mafia RolePlay :: General Talk :: Server Suggestions-
Jump to: