Command Help
#4

Very easy just make a bool
PHP код:
new bool:pm[MAX_PLAYERS]; 
And at the pm command
PHP код:
if(pm[iPlayer]== false) return SendClientMessage(playerid, -1, "This player blocked private messages"): 
And for the command
PHP код:
CMD:pms(playerid, params[])
{
    if(
pm[playerid] == false)
    {
        
pm[playerid] = true;
        
SendClientMessage(playerid,0xEE128960,"Private Messages unblocked! You can receive messages from other players");
    }
    else
    {
        
pm[playerid] = false;
        
SendClientMessage(playerid, 0xEE128960,"Private Messages blocked! You will no longer receive messages from other players");
    }
    return 
1;
} 
Reply


Messages In This Thread
Command Help - by Diti1 - 18.01.2015, 21:18
Re: Command Help - by ball - 18.01.2015, 21:28
Re: Command Help - by Diti1 - 18.01.2015, 21:30
Re: Command Help - by nezo2001 - 18.01.2015, 21:32
Re: Command Help - by Diti1 - 18.01.2015, 21:38
Re: Command Help - by CharlieSanchez - 18.01.2015, 21:46
Re: Command Help - by nezo2001 - 19.01.2015, 07:15
Re: Command Help - by Diti1 - 19.01.2015, 10:15
Re: Command Help - by ball - 19.01.2015, 14:28
Re: Command Help - by nezo2001 - 19.01.2015, 14:53

Forum Jump:


Users browsing this thread: 1 Guest(s)