script help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Other (
https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (
https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: script help (
/showthread.php?tid=243666)
script help -
[bs]_lancer - 24.03.2011
hello guys , i mapped new jail and i used alot of gates so i need some change , so i decide to script check point instead of the gate so when the player walk on the check point he just can cross the gate or wall or somthing !
if any one understand what i mean , can he show me how to script this
tnx
Re: script help -
THE_KNOWN - 24.03.2011
Код:
#include <streamer>
new jailcp;
public OnGameModeInit()//or OnFilterScriptInit()
{
jailcp=CreateDynamicCP(x,y,z,size,-1,-1,-1,100);//x,y,z coors of where you want the cp and size of it usually 3 for a car.
return 1;
}
public OnPlayerEnterDynamicCP(playerid,checkpointid)
{
if(checkpointid == jailcp)
{
SetPlayerPos(playerid,x,y,z);//the place you want him to tele to in the jail
}
return 1;
}
its eesh
Re: script help -
[bs]_lancer - 24.03.2011
k thats workin soo nice but now i need to set check point i mean i need to put icon so the player can see it
how ?