#1

^^^^^^^^
Reply
#2

I'm not sure what are you actually asking, but on every TP command that you have, make a check if he's frozen, if he does return a message error exactly as you showed above.
pawn Код:
CMD:tp(playerid, params[])
{
     if(Frozen[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You cannot use this command when frozen"); // this didn't work so I tried with
     return 1;
}
Why don't you put both filterscript and GM together? Or atleast set frozen players at your GM just as you did at your filterscript.
Reply
#3

^^^^^^^^
Reply
#4

^^^^^^^^
Reply
#5

In the Free Command Do..

pawn Код:
Frozen[pID] == 1;
pawn Код:
CMD:command(playerid, params[])
{
     if(Frozen[playerid] == 1) return SendClientMessage(playerid, COLOR_GREY, "You Cant use this command while Frozed");
     // Rest of command here
     return 1;
}
Reply
#6

I usually use this method.
Код:
CMD:gtfo(playerid,params[])
{
  if(Frozen[playerid] == 1)
  {
     SendClientMessage(playerid,-1,"You cannot use this command while frozen");
  }
  else
  {
    // YOUR COMMAND HERE 
  }
Reply
#7

^^^^^^^^
Reply
#8

Then use PVar for it.
Reply
#9

Why not putting your teleport cmd in the FS aswell?
Reply
#10

^^^^^^^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)