how create a freeze cmd for cops /tazer ???????? PLS HELP
#1

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
Reply
#2

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

Reply
#3

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

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

I need the cmd not the heal cmd not includes !
Reply
#6

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

Use dcmd..
Quick example: >>

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

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

Код:
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
Reply
#10

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;
}
Reply


Forum Jump:


Users browsing this thread: