Create Blocking System [PM]
#2

Try to do something like this:
PHP код:
#include <sscanf2>
#include <zcmd>
new pBlockedID[MAX_PLAYERS];
CMD:blockplayer(playeridparams[])
{
      new 
id;
      if(
sscanf(params"u"id) return SendClientMessage(playerid, -1"Syntax: /blockplayer <id/playername>");
      
pBlockedID[playerid] = id;
      
SendClientMessage(playerid, -1"You blocked succesfully the player!");
}
public 
OnPlayerText(playeridtext[])
{
     foreach(new 
iPlayer)
     {
           if(
i==pBlockedID[playerid])// checks if the player who send message is blocked
           
{
               return 
1;
           }
           else 
SendClientMessage(iCOLORtext);
     }
     return 
0;

hope I helped you!
Reply


Messages In This Thread
Create Blocking System [PM] - by PoniStar - 24.12.2018, 15:36
Re: Create Blocking System [PM] - by StRaphael - 24.12.2018, 17:07
Re: Create Blocking System [PM] - by PoniStar - 24.12.2018, 17:51
Re: Create Blocking System [PM] - by StRaphael - 24.12.2018, 18:23
Re: Create Blocking System [PM] - by PoniStar - 24.12.2018, 18:34
Re: Create Blocking System [PM] - by StRaphael - 24.12.2018, 21:45
Re: Create Blocking System [PM] - by PoniStar - 25.12.2018, 01:29

Forum Jump:


Users browsing this thread: 1 Guest(s)