OnPlayerKey
#7

Quote:
Originally Posted by Micko123
View Post
Okay but explain me then how is this working??
PHP Code:
if(newkeys == KEY_SECONDARY_ATTACK)
    {
        new 
orgOrgID OrgInfo[org][oID];
        if(
IsPlayerInRangeOfPoint(playerid2.0OrgInfo[org][oExitX], OrgInfo[org][oExitY], OrgInfo[org][oExitZ]))
        {
            if(
PlayerInfo[playerid][OrgJoined] != OrgID || PlayerInfo[playerid][OrgLeader] != OrgID)
            {
                
ERROR(playerid"You are not member of that org");
                return 
1;
            }
            
SetPlayerInterior(playeridOrgInfo[org][oInt]);
            
SetPlayerVirtualWorld(playeridOrgInfo[org][oVW]);
            
SPP(playeridOrgInfo[org][oIntX], OrgInfo[org][oIntY], OrgInfo[org][oIntZ]);
        }
        } 
Because you're probably standing near the coordinates of the one with index = 0.
Try it with another Org (Make sure that this one still exists)
Reply


Messages In This Thread
OnPlayerKey - by Micko123 - 29.12.2016, 06:17
Re: OnPlayerKey - by Stinged - 29.12.2016, 06:32
Re: OnPlayerKey - by Micko123 - 29.12.2016, 06:34
Re: OnPlayerKey - by RayBiH - 29.12.2016, 07:11
Re: OnPlayerKey - by Micko123 - 29.12.2016, 07:22
Re: OnPlayerKey - by RayBiH - 29.12.2016, 08:24
Re: OnPlayerKey - by Stinged - 29.12.2016, 09:58

Forum Jump:


Users browsing this thread: 1 Guest(s)