How to create movable gate
#1

Hello, I want to know how to make movable gate.
Example (A player using 0xFFFFFF00 (Invisible color) and if he comes near the gate, then the gate will open automatically.If another player using different color then the gate will not open.)

Can someone know a script like this please.
Reply
#2

Can anybody help Please
Reply
#3

Quote:
Originally Posted by MichaelProPlayer
Посмотреть сообщение
Whooo you both can fight by sending pm each other.Don't fight here..... >.<
Whooo, can you stop bumping after 2 hours? The limit is 48 hours, and also, there are tons of tutorials for this!

http://forum.sa-mp.com/search.php?searchid=4292669
Reply
#4

Quote:
Originally Posted by Twisted_Insane
Посмотреть сообщение
Whooo, can you stop bumping after 2 hours? The limit is 48 hours, and also, there are tons of tutorials for this!

http://forum.sa-mp.com/search.php?searchid=4292669
LOL anyway tnx for helping i gave you +1 rep.... 1 more thing don't be so rude D:
Reply
#5

I usually am not rude, so don't worry! I just was still a little angry from that topic, so if you thought that I meant it in the 'evil' way, I'm sorry!
Reply
#6

lol looking at your pic and your name and the way you talk.....everyone will think you are a rude person....
Reply
#7

Can you help this code:

Код:
forward CheckForWalking();
public OnGameModeInit();
{
	SetTimer("CheckForWalking", 1500, 1);
}
public  CheckForWalking()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i))
		{
		    if(PlayerToPoint(5.0, i, X ,Y, Z))
			{
			    if(GetPlayerColor(i) == 0xFFFFFF00)
			    {
					Script for move gate.
				}
				else return 1;
			}
		}
	}
	return 1;
}
static PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
    if(IsPlayerConnected(playerid))
	{
	    new Float:pos[3];
	    new Float:tmppos[3];
		GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
		tmppos[0] = (pos[0] - x);
		tmppos[1] = (pos[1] - y);
		tmppos[2] = (pos[2] - z);
		if (((tmppos[0] < radi) && (tmppos[0] > -radi)) && ((tmppos[1] < radi) && (tmppos[1] > -radi)) && ((tmppos[2] < radi) && (tmppos[2] > -radi)))
		{
			return 1;
		}
	}
	return 0;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)