[Help] /Gag system few more
#4

Quote:
Originally Posted by PrO.GameR
Посмотреть сообщение
Your OnPlayerText would probably look like this:
PHP код:
public OnPlayerText(playeridtext[])
{
    new 
msg[128];
//Send the msg
    
return 0;

change it to
PHP код:
public OnPlayerText(playeridtext[])
{
    if(
Player[id][Gagged] == 0)
    {
    new 
msg[128];
    
//Send the msg
    
}
    return 
0;

This simply checks if your player isn't gagged, you need to apply this to all your IC commands btw (/low /s /w) and others you have
for second one, you need to make a global variable that sets the time, and check if current time - that variable is more than your recharge time when a player shoots anotherone with your tazer gun, more info about the way I suggested here: forum.sa-mp.com/showthread.php?t=254915&highlight=unix+timestamp
as for your third question, simply take this out
PHP код:
            Player[playerid][CopDuty] = 1
( and the = 0 one too)
and make another cmd as /duty
So for the last one do i remove this
Код:
Player[playerid][CopDuty] = 1;
and this
Код:
if(Player[playerid][CopDuty] == 0)
from the script code? and also note that when they do /badge or /duty it will give them a desert eagle and shotgun, spraycan ,mp5
Reply


Messages In This Thread
[Help] /Gag system /badge /tazer - by BigGreen - 02.10.2015, 05:15
Re: [Help] /Gag system few more - by BigGreen - 02.10.2015, 10:46
Re: [Help] /Gag system few more - by PrO.GameR - 02.10.2015, 11:20
Re: [Help] /Gag system few more - by BigGreen - 02.10.2015, 11:30
Re: [Help] /Gag system few more - by BigGreen - 02.10.2015, 22:20
Re: [Help] /Gag system few more - by PrO.GameR - 03.10.2015, 09:33

Forum Jump:


Users browsing this thread: 1 Guest(s)