[FilterScript] [FS]~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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS]~Jail Command~ (
/showthread.php?tid=118499)
[FS]~Jail Command~ -
Nakki - 03.01.2010
Jail Command Updated
Command
/jail playerid
/unjail playerid
What it Make?
If you type /jail (playerid) it will jail that player.(have to be rcon admin)
When you want to unjail him make /unjail playerid
Download
http://pastebin.com/f3e278e93
AMX -->
http://solidfiles.com/d/1IHd
pwn -->
http://solidfiles.com/d/miW4
If you have problems with it.. tell me.. i try to help you
Re: [FS]~Jail Command~ -
Hullu - 03.01.2010
Teleport Command
Re: [FS]~Jail Command~ -
Doppeyy - 03.01.2010
Cant people abuse this command ? or is it for Rcon only ?
Cause else its a bad FS :P cause people will put eachother in jail.
[Doppeyy
Re: [FS]~Jail Command~ -
Nakki - 03.01.2010
Im beginner so.. how i make it for RCON
only ??
Re: [FS]~Jail Command~ -
Doppeyy - 03.01.2010
[Doppeyy
Re: [FS]~Jail Command~ -
Nakki - 03.01.2010
Where here i put that .. it says = error 017: undefined symbol "PlayerIsAdmin"
Code:
if(PlayerIsAdmin == 1)
Re: [FS]~Jail Command~ -
Doppeyy - 03.01.2010
pawn Code:
if(!strcmp(cmdtext, "/jail", true, 5))
{
if(IsPlayerAdmin == 1)
{
if(!strlen(cmdtext[6]))
{
SendClientMessage(playerid, COLOR_ORED, "Usage: /jail [playerid]");
return 1;
}
new ID = strval(cmdtext[6]);
new strv[170];
if(IsPlayerConnected(ID))
{
format(strv, 170, "~ You have been jailed");
SendClientMessage(ID,COLOR_ORANGE, strv);
SetPlayerPos(ID, 264.8763,81.9862,1001.0390);
SetPlayerInterior(ID, 6);
}
}
else
{
SendClientMessage(playerid,COLOR_RED,"You have to be admin to use this command!!");
}
return 1;
}
[Doppeyy
Re: [FS]~Jail Command~ -
Niixie - 03.01.2010
Doppeyy you were be4 me! FUUU
pawn Code:
if(!strcmp(cmdtext, "/jail", true, 5))
{
if(PlayerIsAdmin == 1)
{
if(!strlen(cmdtext[6]))
{
SendClientMessage(playerid, COLOR_ORED, "Usage: /jail [playerid]");
return 1;
}
new ID = strval(cmdtext[6]);
new strv[170];
if(IsPlayerConnected(ID))
{
format(strv, 170, "~ You have been jailed");
SendClientMessage(ID,COLOR_ORANGE, strv);
SetPlayerPos(ID, 264.8763,81.9862,1001.0390);
SetPlayerInterior(ID, 6);
}
}
return SendClientMessage(playerid, COLOR_RED, "Your not rcon admin!");
}
That should do it
Re: [FS]~Jail Command~ -
Doppeyy - 03.01.2010
Quote:
Originally Posted by Niixie
Doppeyy you were be4 me! FUUU
pawn Code:
if(!strcmp(cmdtext, "/jail", true, 5)) { if(PlayerIsAdmin == 1) { if(!strlen(cmdtext[6])) { SendClientMessage(playerid, COLOR_ORED, "Usage: /jail [playerid]"); return 1; } new ID = strval(cmdtext[6]); new strv[170]; if(IsPlayerConnected(ID)) { format(strv, 170, "~ You have been jailed"); SendClientMessage(ID,COLOR_ORANGE, strv); SetPlayerPos(ID, 264.8763,81.9862,1001.0390); SetPlayerInterior(ID, 6); } } return SendClientMessage(playerid, COLOR_RED, "Your not rcon admin!"); }
That should do it
|
And how is that one better then the one i posted ?
[Doppeyy
Re: [FS]~Jail Command~ -
Nakki - 03.01.2010
error 076: syntax error in the expression, or invalid function call -_-