20.05.2012, 12:14
Indent the code and you'll lose your loose indentation warnings.
Or, press TAB so the code gradually 'opens' and 'closes'.
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;
}