script help
#1

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)