02.10.2015, 11:20
Your OnPlayerText would probably look like this:
change it to
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
( and the = 0 one too)
and make another cmd as /duty
PHP код:
public OnPlayerText(playerid, text[])
{
new msg[128];
//Send the msg
return 0;
}
PHP код:
public OnPlayerText(playerid, text[])
{
if(Player[id][Gagged] == 0)
{
new msg[128];
//Send the msg
}
return 0;
}
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 make another cmd as /duty