little problem with enter -
WardenCS - 23.11.2009
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;
}
|
Re: little problem with enter -
[DDC]Delight - 23.11.2009
Perhaps make a checkpoint at that coord.
Then place the if pMember=5 onplayerentercheckpoint
Re: little problem with enter -
James_Bauer - 23.11.2009
Code:
PlayerToPoint(playerid,1830.1904,-1983.0223,13.5469);
if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
Re: little problem with enter -
WardenCS - 23.11.2009
it wont work:S same prob,can enter everywhere u want:S
Re: little problem with enter -
James_Bauer - 23.11.2009
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
Re: little problem with enter -
WardenCS - 23.11.2009
didnt understand sry :S my english sucks
Re: little problem with enter -
[DDC]Delight - 23.11.2009
What he was trying to say is make a command.
Example:
/enter
Then make the command set you position to where ever you want
Re: little problem with enter -
WardenCS - 23.11.2009
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
|
Re: little problem with enter -
James_Bauer - 23.11.2009
Then try it IsPlayerAtPosition (playerid,1830.1904,-1983.0223,13.5469); and this too if(PlayerInfo[playerid][pMember] == 5 || if(PlayerInfo[playerid][pMember] == 5 ||
Re: little problem with enter -
[DDC]Delight - 23.11.2009
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