10.01.2013, 14:19
Hello,
For my roleplay script I am going to need animations. Now there are pretty much a lot of good of these filterscripts availeble. When a player is cuffed, tazed, frozen by admins or in any other situation he is not allowed to use animations it must disable it. In the /handsup command I have I use this:
Now it works fine, but is it posible to download a filterscript and to run these checks at every command in the filterscript?
I thought to myself of using OnPlayerCommandReceived and then run this check. But if I use that in my filterscript, won't it block commands in my gamemode as well?
For my roleplay script I am going to need animations. Now there are pretty much a lot of good of these filterscripts availeble. When a player is cuffed, tazed, frozen by admins or in any other situation he is not allowed to use animations it must disable it. In the /handsup command I have I use this:
pawn Код:
if(GetPVarInt(playerid, "Injury") == 1 || IsCuffed[playerid] >= 1)
{
SendClientMessageEx(playerid, COLOR_GREY, "You are currently injured, tazed or cuffed. Unable to perform animation.");
return 1;
}
Now it works fine, but is it posible to download a filterscript and to run these checks at every command in the filterscript?
I thought to myself of using OnPlayerCommandReceived and then run this check. But if I use that in my filterscript, won't it block commands in my gamemode as well?