Help with Gates
#5

Indent the code and you'll lose your loose indentation warnings.

Or, press TAB so the code gradually 'opens' and 'closes'.

pawn Код:
if(strcmp(cmd,"/Yamao2",true)==0)
{
    if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
    {
        if(IsPlayerInRangeOfPoint(playerid, 8.0, 658.40002441406, -1226.6999511719, 22.39999961853))
        {
            MoveDynamicObject(rallon4, 658.40002441406, -1226.6999511719, 22.39999961853, 1.5, 0.0, 0.0, 0.0);
            SetTimer("GateCloseBMS", 8000, 0);
            format(string, sizeof(string), "* %s takes his/her remote and opens the gate.", sendername);
            ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,CO LOR_CHAT5);
            SendClientMessage(playerid, COLOR_ORANGE, "The gate is opened and will close in few seconds.");
            return 1;
        }
        else SendClientMessage(playerid, -1, "You are not near the gate.");
    }
    else
    {
        SendClientMessage(playerid, COLOR_RED, "You don't have a remote that could open the gate!");
    }
    return 1;
}
Reply


Messages In This Thread
Help with Gates - by miley1 - 19.05.2012, 19:29
Re: Help with Gates - by SnG.Scot_MisCuDI - 19.05.2012, 20:18
Re: Help with Gates - by ReneG - 19.05.2012, 20:36
Re: Help with Gates - by miley1 - 20.05.2012, 12:11
Re: Help with Gates - by [FMJ]PowerSurge - 20.05.2012, 12:14
Re: Help with Gates - by miley1 - 20.05.2012, 13:00

Forum Jump:


Users browsing this thread: 1 Guest(s)