[HELP]Prision Command
#1

Код:
	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
Reply
#2

You mean something like if someone cheats but him in jail ?
Or do you mean to visit someone in prison ?

[Doppeyy
Reply
#3

Like im Cop.. and i but someone to jail.. same as /jail command (i mean prison no prision)
Reply
#4

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

Okay.. I try myself first.. Tell me when u can make it
Reply
#6

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

Okay. I dont :P
Reply
#8

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;

    }
Reply
#9

Thank you Really Much
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)