SA-MP Forums Archive
how create a freeze cmd for cops /tazer ???????? PLS HELP - 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: how create a freeze cmd for cops /tazer ???????? PLS HELP (/showthread.php?tid=140745)



how create a freeze cmd for cops /tazer ???????? PLS HELP - RobShakur - 10.04.2010

how create this cmd with this example:

/tazer 3 (THIS IS THE ID THAT IM FREEZE)

and this cmd unfreeze:

/tazer 3

i dont know how make this i have use samp wiki im sorry ...

PLS HELP ME


Re: how create a freeze cmd for cops /tazer ???????? PLS HELP - MichalGusta - 10.04.2010

wouldn't it be easier to do something like one tazer command but set the freeze on a timer?




Re: how create a freeze cmd for cops /tazer ???????? PLS HELP - RobShakur - 10.04.2010

BUT I DONT KNOW HOW TO CREATE THIS CMD WITHOUT TIMER
PLS HELP ME !


Re: how create a freeze cmd for cops /tazer ???????? PLS HELP - Torran - 10.04.2010

https://sampwiki.blast.hk/wiki/Fast_Commands#sscanf


Re: how create a freeze cmd for cops /tazer ???????? PLS HELP - RobShakur - 10.04.2010

I need the cmd not the heal cmd not includes !


Re: how create a freeze cmd for cops /tazer ???????? PLS HELP - sjvt - 10.04.2010

Quote:
Originally Posted by RobShakur
I need the cmd not the heal cmd not includes !
https://sampwiki.blast.hk/wiki/TogglePlayerControllable


Re: how create a freeze cmd for cops /tazer ???????? PLS HELP - RyDeR` - 10.04.2010

Use dcmd..
Quick example: >>

dcmd_tazer(playerid, params[])
{
TogglePlayerControllable(strval(params), false);
return 1;
}



Re: how create a freeze cmd for cops /tazer ???????? PLS HELP - RobShakur - 10.04.2010

I DONT KNOW HOW TO PASTE THE ID IN THE CMD I NEED THE FINISHED CMD UNDERSTAND ME NOW ?
I DONT CAN CREATE THIS !!!!!!!!!!!!!!!!!!!!!!!!


Re: how create a freeze cmd for cops /tazer ???????? PLS HELP - RobShakur - 10.04.2010

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  dcmd_tazer(playerid, params[])
  {
  TogglePlayerControllable(strval(params), false);
  return 1;
  }
rerturn 0;
}
error !
Код:
C:\Dokumente und Einstellungen\Robin\Desktop\Spiele\samp server 0.3a 1\gamemodes\2Fast4You.pwn(61) : warning 217: loose indentation
C:\Dokumente und Einstellungen\Robin\Desktop\Spiele\samp server 0.3a 1\gamemodes\2Fast4You.pwn(252) : error 017: undefined symbol "dcmd_tazer"
C:\Dokumente und Einstellungen\Robin\Desktop\Spiele\samp server 0.3a 1\gamemodes\2Fast4You.pwn(254) : error 017: undefined symbol "params"
C:\Dokumente und Einstellungen\Robin\Desktop\Spiele\samp server 0.3a 1\gamemodes\2Fast4You.pwn(258) : warning 225: unreachable code
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
how use dcmd ?
PLS NOT INCLUDES


Re: how create a freeze cmd for cops /tazer ???????? PLS HELP - sjvt - 10.04.2010

Quote:
Originally Posted by RobShakur
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  dcmd_tazer(playerid, params[])
  {
  TogglePlayerControllable(strval(params), false);
  return 1;
  }
rerturn 0;
}
error !
Код:
C:\Dokumente und Einstellungen\Robin\Desktop\Spiele\samp server 0.3a 1\gamemodes\2Fast4You.pwn(61) : warning 217: loose indentation
C:\Dokumente und Einstellungen\Robin\Desktop\Spiele\samp server 0.3a 1\gamemodes\2Fast4You.pwn(252) : error 017: undefined symbol "dcmd_tazer"
C:\Dokumente und Einstellungen\Robin\Desktop\Spiele\samp server 0.3a 1\gamemodes\2Fast4You.pwn(254) : error 017: undefined symbol "params"
C:\Dokumente und Einstellungen\Robin\Desktop\Spiele\samp server 0.3a 1\gamemodes\2Fast4You.pwn(258) : warning 225: unreachable code
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
how use dcmd ?
PLS NOT INCLUDES
use

#include <dcmd>

and

dcmd(tazer, 5, cmdtext);

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  dcmd_tazer(playerid, params[])
  {
  TogglePlayerControllable(strval(params), false);
  return 1;
  }
return 0;
}