how do i make MY OWN /jail command?
#1

how do i make MY OWN /jail command?
i got no idea lol
Reply
#2

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

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?
Reply
#4

You should probably go look up some basics for PAWN on the wiki.
Reply
#5

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:

pawn Код:
If IsPlayerAdmin
Quote:

and were do i put the code?

pawn Код:
OnPlayerCommandText
Reply
#6

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

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

make the command so only lvl 5 admin can use the command and jail people please
Reply
#9

Damn... Which admin script you use
Reply
#10

ladmin4v2
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)