How can you create a /apm
#6

pawn Код:
CMD:apm(playerid, params[])
{
   new str[128], str2[128], id;
   if(sscanf(params,"ds[128]", id, str2)) return SendClientMessage(playerid, red,"USAGE: /apm [id] [message]");
   if(IsPlayerConnected(id))
   {
       if(id != playerid)
       {

              if(PlayerInfo[playerid][Level] >= 1)
              {
                format(str, sizeof(str),"Admin PM to [%d]%s: %s", id, PlayerName2(id), str2);
                SendClientMessage(playerid, yellow, str);
                format(str, sizeof(str),"[PM]Admin: %s", str2);
                SendClientMessage(id, COLOR_PINK, str);
                PlayerPlaySound(id,1085,0.0,0.0,0.0);
                }
           else return SendClientMessage(playerid, red,"You are not a high enough level to use this command");
       }
       else return SendClientMessage(playerid, red,"You cannot PM yourself");
   }
   else return SendClientMessage(playerid, red,"Player is not connected");
   return 1;
}

P.S.
First time see CMD:apm with so many versions
Reply


Messages In This Thread
How can you create a /apm - by lulo356 - 28.10.2013, 12:33
Re: How can you create a /apm - by Dolby - 28.10.2013, 12:35
Re: How can you create a /apm - by Konstantinos - 28.10.2013, 13:07
Re: How can you create a /apm - by Brandon_More - 28.10.2013, 16:14
Re: How can you create a /apm - by Elie1996 - 11.11.2013, 20:15
Re: How can you create a /apm - by BodyBoardVEVO - 11.11.2013, 20:25

Forum Jump:


Users browsing this thread: 2 Guest(s)