[HELP]Prision 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: [HELP]Prision Command (
/showthread.php?tid=116503)
[HELP]Prision Command -
Nakki - 29.12.2009
Код:
if (strcmp("/prision", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,-2127.9622,2677.8333,159),
return 1;
}
How can I do it so that it can be done to everybody?
Like /Prision 2 (id2)
Thanks Beforehand
Re: [HELP]Prision Command -
Doppeyy - 29.12.2009
You mean something like if someone cheats but him in jail ?
Or do you mean to visit someone in prison ?
[Doppeyy
Re: [HELP]Prision Command -
Nakki - 29.12.2009
Like im Cop.. and i but someone to jail.. same as /jail command (i mean prison no prision)
Re: [HELP]Prision Command -
Doppeyy - 29.12.2009
Ahhhhh now i see its for a roleplaying thing or something.
Well you have to use is PlayerToPoint and stuff.
But i just woke up so i dont really feel like making it now.
Maybey i will do it later today.
[Doppeyy
Re: [HELP]Prision Command -
Nakki - 29.12.2009
Okay.. I try myself first.. Tell me when u can make it
Re: [HELP]Prision Command -
Doppeyy - 29.12.2009
I sayd maybey cause i also i am busy with my own gamemode and stuff.
So dont get your hopes up to high :P.
[Doppeyy
Re: [HELP]Prision Command -
Nakki - 29.12.2009
Okay. I dont :P
Re: [HELP]Prision Command -
Jakku - 03.01.2010
Try this man:
pawn Код:
if(!strcmp(cmdtext, "/jail", true, 5))
{
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(playerid, jail_coords_here);
}
return 1;
}
Re: [HELP]Prision Command -
Nakki - 03.01.2010
Thank you Really Much
Re: [HELP]Prision Command -
Jakku - 03.01.2010
Quote:
Originally Posted by [๔เгty๔ยtςђ
๔๏קקєyy ]
Ahhhhh now i see its for a roleplaying thing or something.
Well you have to use is PlayerToPoint and stuff.
But i just woke up so i dont really feel like making it now.
Maybey i will do it later today.
[Doppeyy
|
You just are not experienced enough to make it xD