how do i make MY OWN /jail 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: how do i make MY OWN /jail command? (
/showthread.php?tid=148187)
how do i make MY OWN /jail command? -
[A51]suicider - 16.05.2010
how do i make MY OWN /jail command?
i got no idea lol
Re: how do i make MY OWN /jail command? - BigM - 16.05.2010
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/jail", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,x,y,z); // At x,y,z put coordinates of jail place there ...
return 1;
}
return 0;
}
Re: how do i make MY OWN /jail command? -
[A51]suicider - 16.05.2010
is this command JUST for lvl 5 admins or how can i change this(to a different level admin)?
can i make the command just for 1 player only?
and were do i put the code? after OnPlayerCommandText?
Re: how do i make MY OWN /jail command? -
Grim_ - 16.05.2010
You should probably go look up some basics for PAWN on the wiki.
Re: how do i make MY OWN /jail command? - BigM - 16.05.2010
Quote:
Originally Posted by [A51
suicider ]
is this command JUST for lvl 5 admins or how can i change this(to a different level admin)?
can i make the command just for 1 player only?
and were do i put the code? after OnPlayerCommandText?
|
No,this command is for everyone if you want to change it to admins
just add this line:
Quote:
and were do i put the code?
|
Re: how do i make MY OWN /jail command? -
[A51]suicider - 16.05.2010
big M could you please put that all together for a level 5 admin please? lol i know alot to ask but i got no idea and i will learn please.
Cheers suicider
Re: how do i make MY OWN /jail command? -
Thrarod - 16.05.2010
Quote:
Originally Posted by BigM
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/jail", cmdtext, true, 10) == 0) { SetPlayerPos(playerid,x,y,z); // At x,y,z put coordinates of jail place there ... return 1; } return 0; }
|
D: It jails yourself
Re: how do i make MY OWN /jail command? -
[A51]suicider - 16.05.2010
make the command so only lvl 5 admin can use the command and jail people please
Re: how do i make MY OWN /jail command? -
Thrarod - 16.05.2010
Damn... Which admin script you use
Re: how do i make MY OWN /jail command? -
[A51]suicider - 16.05.2010
ladmin4v2