Anyone can help me
#1

I am trying to say that how to make a thing which will can only be done in near of the object without PlayerToPoint or ProxDetector or IsPlayerInRangeOfPoint. For example, this

if(GetPlayerVehicle == 2

for

if(GetPlayerObject == 2

I am making an ATM system so I need this thing so that I can make ATM in game
Reply
#2

You can simply do your function that would check if player is near atm:
pawn Код:
stock IsPlayerNearATM(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,2.0,[ATM1_X],[ATM1_Y],[ATM1_Z])) return 1;
if(IsPlayerInRangeOfPoint(playerid,2.0,[ATM2_X],[ATM2_Y],[ATM2_Z])) return 1;
//And so on, changing [ATM1/2_X/Y/Z] to your ATMs position
return 0;
}
And then use it like this:
pawn Код:
if(IsPlayerNearATM(playerid))
{
//My code!
}
Reply
#3

nope not that. I want to make ATM in game. So I need that GetPlayerObject system
Reply
#4

Why the hell do you want GetPlayerObject?
Use CreateObject and after that IsPlayerInRangeOfPoint
Reply
#5

if that the case then if I create atm in game then it will show up that you are not near any atm
Reply
#6

Quote:
Originally Posted by Steven Paul
Посмотреть сообщение
if that the case then if I create atm in game then it will show up that you are not near any atm
Why would you need to create ATMs in-game? Just place them in script with CreateObject..
If you really wanna have in-game creation system, you'd need a big script for that :P
Reply
#7

really
Reply
#8

please help me someone
Reply
#9

bump!!!!!!
Reply
#10

For that, use OED -> Ingame Object Editor by breadfish
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)