little problem with enter
#1

Hello,well i wanted to make HQ,that only pMember 5 can go inside there,but yeah i can enter everywhere but i want that u can enter only at one coordinates
1830.1904,-1983.0223,13.5469

i thinked something like that
Quote:

(PlayerToPointStripped(8.0, playerid,1830.1904,-1983.0223,13.5469))

but where i put it?

there is the thingy
Quote:

if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
{
SetPlayerPos(playerid, 2351.0479,-1180.8905,1027.9766);
GameTextForPlayer(playerid, "~w~Los Surenos 13 HQ",5000,1);
SetPlayerInterior(playerid,5);
SetPlayerFacingAngle(playerid, 90);
PlayerInfo[playerid][pInt] = 5;
}

Reply
#2

Perhaps make a checkpoint at that coord.
Then place the if pMember=5 onplayerentercheckpoint
Reply
#3

Code:
PlayerToPoint(playerid,1830.1904,-1983.0223,13.5469);
if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
Reply
#4

it wont work:S same prob,can enter everywhere u want:S
Reply
#5

Maybe you can try to make some checkpoint and write PlayerToCheckpoint(playerid,cords...) and maybe it will get him in only him but dont forget if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5) + you can make some /enter command for the faction members
Reply
#6

didnt understand sry :S my english sucks
Reply
#7

What he was trying to say is make a command.

Example:
/enter
Then make the command set you position to where ever you want
Reply
#8

i have that command,it works but i can /enter everywhere and it still goes there,i want to make it only goes from one coordinates not the whole san andreas
Quote:

1830.1904,-1983.0223,13.5469

Reply
#9

Then try it IsPlayerAtPosition (playerid,1830.1904,-1983.0223,13.5469); and this too if(PlayerInfo[playerid][pMember] == 5 || if(PlayerInfo[playerid][pMember] == 5 ||
Reply
#10

Then you need to make the command only available at a certain location.

Like James said send the code and he or I will fix it

Greetz
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)