SA-MP Forums Archive
Delete - 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: Delete (/showthread.php?tid=123693)



Delete - bartje01 - 26.01.2010

Delete plz


Re: jail - Devine - 26.01.2010

Script request thread.


Re: jail - actiwe - 26.01.2010

pawn Код:
forward Free(playerid);

CMD:jail(playerid, params[])
{
new otherid, time;
if(sscanf(params, "ui", otherid, time)) return SendClientMessage(playerid, COLOR, "USAGE /jail ID TIME");

SetPlayerPos(otherid, CORDSHERE!);
new newtime = time*60000
SetTimerEx("Free",newtime,0,"d",otherid);
return 1;
}

public Free(playerid)
{
SetPlayerPos(playerid, CORDS);
SendClientMessage(playerid, COLOR, "You're freee!");
}
Did it, but untested.


Re: jail - bartje01 - 27.01.2010

Quote:
Originally Posted by actiwe
pawn Код:
forward Free(playerid);

CMD:jail(playerid, params[])
{
new otherid, time;
if(sscanf(params, "ui", otherid, time)) return SendClientMessage(playerid, COLOR, "USAGE /jail ID TIME");

SetPlayerPos(otherid, CORDSHERE!);
new newtime = time*60000
SetTimerEx("Free",newtime,0,"d",otherid);
return 1;


}

public Free(playerid)
{
SetPlayerPos(playerid, CORDS);
SendClientMessage(playerid, COLOR, "You're freee!");
}
Did it, but untested.
Alright thankyou.
But where to put everything in my game mode? :P
And sorry for the wrong thread

I'ts not working I've tryed some things


Re: jail - actiwe - 27.01.2010

I forgot to mention that i used zcmd and sscanf. Look for includes in correct section.