SA-MP Forums Archive
Need help with.. - 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: Need help with.. (/showthread.php?tid=229484)



Need help with.. - Franklyn - 21.02.2011

Hello.
I made my own faction gate. It should be for triads(faction9). I can open it with command, and close it with command, but now i wanna know how i can delete that command, and it automatically detect, if player is triad , then it open itself ( without command) and closes also, and if player is not triad, then doesen't open.
Anyone can help me?


Re: Need help with.. - Stigg - 21.02.2011

https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint

Will help you get what you want.

Peace...


Re: Need help with.. - Franklyn - 21.02.2011

Quote:
Originally Posted by Stigg
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint

Will help you get what you want.

Peace...
This should help it open automatically for faction members? -.-


Re: Need help with.. - Marricio - 21.02.2011

yeah, you can make it for do that.


Re: Need help with.. - Stigg - 21.02.2011

Yeah it will help. With abit of studying.
Get players faction.
Then if a faction player is in range of point, open your whatever.
If hes not in the right faction nothing will happen.

Peace.


Re: Need help with.. - iMonk3y - 21.02.2011

I'd use GetPlayerSkin/GetPlayerTeam & Pickup combination..


Re: Need help with.. - Stigg - 21.02.2011

Quote:
Originally Posted by iMonk3y
Посмотреть сообщение
I'd use GetPlayerSkin/GetPlayerTeam & Pickup combination..
That a good way of of achieving the desired result too.

Peace...


Re: Need help with.. - Franklyn - 21.02.2011

HuHu. While i'm beginner at scripting i never can do it -.-


Re: Need help with.. - Stigg - 21.02.2011

Quote:
Originally Posted by Franklyn
Посмотреть сообщение
HuHu. While i'm beginner at scripting i never can do it -.-
We all have to start somewhere buddy.
The samp wiki is a must read. The pawn homepage is a must read to.
Dont worry, you'll get there in the end.

Peace...


Re: Need help with.. - Marricio - 21.02.2011

pawn Код:
if(IsPlayerInRangeOfPoint(playerid,range,X,Y,Z))
{
if(GetPlayerTeam(playerid,9))
{
//stuff
}
else
{
return 0;
}
}