Need help with..
#1

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

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

Will help you get what you want.

Peace...
Reply
#3

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? -.-
Reply
#4

yeah, you can make it for do that.
Reply
#5

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.
Reply
#6

I'd use GetPlayerSkin/GetPlayerTeam & Pickup combination..
Reply
#7

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

Peace...
Reply
#8

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

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...
Reply
#10

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


Forum Jump:


Users browsing this thread: 2 Guest(s)