Search Command
#6

Quote:
Originally Posted by Black Wolf
Посмотреть сообщение
pawn Код:
CMD:check(playerid, params[])
{
          new pID;
         if(sscanf(params, "u", pID)) return SendClientMessage(playerid, -1, "Correct Syntax: /Check PlayerName|ID.");
         if(g_pDrugs[pID] > 0)  
             SendClientMessage(playerid, -1, "Player has drugs!");
        else
             SendClientMessage(playerid, -1, "Player dont have drugs!");
        return 1;
}
I want to check how much drugs the player has, and send the message to the cop saying the player has %s amount of drugs.
Reply


Messages In This Thread
/Search Command - by FunnyBear - 08.06.2013, 12:25
Re: Search Command - by Goldino - 08.06.2013, 12:33
Re: Search Command - by FunnyBear - 08.06.2013, 12:35
Re: Search Command - by FunnyBear - 08.06.2013, 13:22
Re: Search Command - by Black Wolf - 08.06.2013, 13:32
Re: Search Command - by FunnyBear - 08.06.2013, 13:48
Re: Search Command - by Black Wolf - 08.06.2013, 13:50
Re: Search Command - by DeMoX - 08.06.2013, 14:45

Forum Jump:


Users browsing this thread: 1 Guest(s)