STill don't get it.
#1

Hey all. I really need an jail cmd. But I really failed at it.
can smoeone explain me how to put a jail cmd in my gamemode exactly?

I want everyone to be in 180 secconds and then respawn at PD.
I really need it.
Thanks.

Regards
Reply
#2

well this section is more for like mending scripts and giving info, the script request thread is what u need. But i can try give u a hand. Nothing fancy the most basic thing ever. First if u want me to help, we'll need the jail location. So ull need the co-ords and the interior id. U should be able to find these. Next u will need the command and cause im noob to dracos things will just use strtok.
Reply
#3

combine SetPlayerPos,SetPlayerInterior,then put a timer SetTimer("unjail",180000,1); and then make a public unjail and put in it SetPlayerPos(pd position)
Reply
#4

Quote:
Originally Posted by Naruto4
combine SetPlayerPos,SetPlayerInterior,then put a timer SetTimer("unjail",180000,1); and then make a public unjail and put in it SetPlayerPos(pd position)
Ah ok. But I also need something like.
/jail [id] :P
can you maybe add me on msn? BK_Walker.cwalk@hotmail.com
Reply
#5

Quote:
Originally Posted by Naruto4
combine SetPlayerPos,SetPlayerInterior,then put a timer SetTimer("unjail",180000,1); and then make a public unjail and put in it SetPlayerPos(pd position)
That wont work, he wants to be using SetTimerEx,
otherwise SetTimer will release everyone from jail,
Even if there time isent up
Reply
#6

yeea i ment settimerex
Reply
#7

Get zcmd

At top of script:
pawn Код:
#include <zcmd>
Anywhere:
pawn Код:
zcmd(jail, playerid, params[])
{
  new player
  if (!sscanf(params, "u", player)
  {
     SetPlayerPos(/*your jail co-ords here*/)
     return 1;
  }
  else SendClientMessage(playerid, color, "USAGE: /jail [userid/partname]
  return 1;
}
Something like that, I know it's not 100%
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)