Jail cmd
#1

need a simple jail cmd please
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=482172
https://sampforum.blast.hk/showthread.php?tid=552766
https://sampforum.blast.hk/showthread.php?tid=118499
Reply
#3

Thank You
Reply
#4

To send a player to the jail ? :

PHP код:
if (strcmp("/jail"cmdtexttrue10) == 0)
    {
                new 
string[128];
            new 
ID;
            new 
cmdreason[128];
            new 
pname[24];
            
GetPlayerName(playerid,pname,sizeof(pname));
        if(
sscanf(params"uis[100]"IDcmdreason))
            {
               
SendClientMessage(playerid,-1,"Use: /jail (Pseudo/ID) (Reason)");
               return 
1;
            } 
                if(!
IsPlayerConnected(ID))
            {
                
format(string,sizeof(string),"Disconnected player.");
                
SendClientMessage(playerid,COLOR_ERROR,string);
                return 
1;
            }
                
SendClientMessage(ID, -1,  "You have been jailed by : %s",pname);
                
SetPlayerPos(IDYOUR JAIL POS);
                
SetPlayerInterior(IDYOUR INTERIOR);
        return 
1;
    } 
Hope this helps.

KillerDVX,
Reply
#5

Thank you killer
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)