Can I make a command ...
#1

Can I make a command like /unstuck that will freeze and then unfreeze a player when he's stuck ?
Reply
#2

Why not just..

Код:
dcmd_unstuck(playerid, params[])
{
	TogglePlayerControllable(playerid,1);
        #pragma unused params
	return 1;
}
Reply
#3

I don't use dcmd I use default (like if(strcmp(cmd, "/panic", true) == 0))
Reply
#4

Код:
if(strcmp(cmd, "/unstuck", true) == 0)
{
     TogglePlayerControllable(playerid,1);
     return 1;
}
Reply
#5

for stuck:
Код:
if(strcmp(cmd, "/stuck", true) == 0)
{
   TogglePlayerControllable(playerid, 0);
   return 1;
}
PS: just elorreli's inverse
Reply
#6

will try that one
Reply
#7

it work ?
Reply
#8

It will.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)