CMD help
#1

When the coordinates is 0.0 it suppose to give this message "No exterior set for this house contact an Lead Admin"
But it doesn't work maybe u guys can help me out? thanks in advance


PHP код:
CMD:enter(playeridparams[])
{
    for(new 
1sizeof(HouseInfo); h++)
    {
        if(
IsPlayerInRangeOfPoint(playerid2.0HouseInfo[h][hEntranceX], HouseInfo[h][hEntranceY], HouseInfo[h][hEntranceZ]))
        {
               if(
GetPlayerVirtualWorld(playerid) == HouseInfo[h][hWorld])
            {
                if(
HouseInfo[h][hLocked] == 0)
                 {
                     if(
HouseInfo[h][hEntranceX], HouseInfo[h][hEntranceY], HouseInfo[h][hEntranceZ] == 0.000000)
                    {
                         
SendErrorMessage(playerid"No exterior set for this house contact an Lead Admin");
                     }
                    
SetPlayerPos(playeridHouseInfo[h][hExitX], HouseInfo[h][hExitY], HouseInfo[h][hExitZ]);
                     
SetPlayerFacingAngle(playeridHouseInfo[h][hExitA]);
                     
SetPlayerInterior(playeridHouseInfo[h][hInsideInt]);
                     
SetPlayerVirtualWorld(playeridHouseInfo[h][hInsideWorld]);
                     
InsideHouse[playerid] = h;
                     
TogglePlayerControllable(playerid,0);
                     
GameTextForPlayer(playerid"~r~Loading Objects"30005);
                     
SetTimerEx("LoadInterior"3000false"i"playerid);
                     return 
1;
                }
                else 
SendErrorMessage(playerid"This house is locked."); 
Reply


Messages In This Thread
CMD help - by N0FeaR - 25.05.2016, 15:56
Re: CMD help - by Darkwood17 - 25.05.2016, 16:01
Re: CMD help - by N0FeaR - 25.05.2016, 16:05
Re: CMD help - by zDivine - 25.05.2016, 16:13
Re: CMD help - by Konstantinos - 25.05.2016, 16:14
Re: CMD help - by N0FeaR - 25.05.2016, 16:22
Re: CMD help - by zDivine - 25.05.2016, 16:28

Forum Jump:


Users browsing this thread: 1 Guest(s)