Can I make a command ... - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Can I make a command ... (
/showthread.php?tid=190204)
Can I make a command ... -
marinov - 14.11.2010
Can I make a command like /unstuck that will freeze and then unfreeze a player when he's stuck ?
Re: Can I make a command ... -
Elorreli - 14.11.2010
Why not just..
Код:
dcmd_unstuck(playerid, params[])
{
TogglePlayerControllable(playerid,1);
#pragma unused params
return 1;
}
Re: Can I make a command ... -
marinov - 14.11.2010
I don't use dcmd I use default (like if(strcmp(cmd, "/panic", true) == 0))
Re: Can I make a command ... -
Elorreli - 14.11.2010
Код:
if(strcmp(cmd, "/unstuck", true) == 0)
{
TogglePlayerControllable(playerid,1);
return 1;
}
Re: Can I make a command ... -
blackwave - 14.11.2010
for stuck:
Код:
if(strcmp(cmd, "/stuck", true) == 0)
{
TogglePlayerControllable(playerid, 0);
return 1;
}
PS: just elorreli's inverse
Re: Can I make a command ... -
marinov - 14.11.2010
will try that one
Re: Can I make a command ... -
[K]e[N] - 20.05.2011
it work ?
Re: Can I make a command ... -
KeyWay - 20.05.2011
It will.