SA-MP Forums Archive
Jail cmd - 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)
+--- Thread: Jail cmd (/showthread.php?tid=581284)



Jail cmd - TenTen - 11.07.2015

need a simple jail cmd please


Re: Jail cmd - SilentSoul - 11.07.2015

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


Re: Jail cmd - TenTen - 11.07.2015

Thank You


Re : Jail cmd - KillerDVX - 12.07.2015

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,



Re: Jail cmd - TenTen - 12.07.2015

Thank you killer