CMD:gates(playerid,params[])
{
if(IsPlayerInRangeOfPoint(playerid, 15.0, -1209.48816, -1071.85449, 123.64065) && PlayerInfo[playerid][Faction] == 1 || IsPlayerInRangeOfPoint(playerid, 15.0, -1209.48816, -1071.85449, 123.64065) && PlayerInfo[playerid][Faction] == 2) // Is Player within 15 meters of this gate?
{
if(MyGateIsOpen == false) // The gate is closed
{
MoveObject(impoundgate,-1209.48816, -1071.85449, 115.09575,2.0); // Open the gate
MyGateIsOpen = true;
}
else // Else the gate is open and we want it to close now
{
MoveObject(impoundgate,-1209.48816, -1071.85449, 130.83427,2); // Close the gate
MyGateIsOpen = false;
} else if(IsPlayerInRangeOfPoint(playerid, 15.0,1587.23071, -1637.87415, 14.68024) && PlayerInfo[playerid][Faction] == 1 || IsPlayerInRangeOfPoint(playerid,15.0,1587.23071, -1637.87415, 14.68024) && PlayerInfo[playerid][Faction] == 2){
if(pdGate == false) // The gate is closed
{
MoveObject(pdgate,1587.23071, -1637.87415, 9.06480,2.0); // Open the gate
pdGate = true;
}
else // Else the gate is open and we want it to close now
{
MoveObject(pdgate,1587.23071, -1637.87415, 14.68024,2); // Close the gate
pdGate = false;
}
else return SendClientMessage(playerid, COLOR_RED, "You are not authorized to use this command.");
return 1;
}
CMD:gates(playerid,params[])
{
if(IsPlayerInRangeOfPoint(playerid, 15.0, -1209.48816, -1071.85449, 123.64065) && PlayerInfo[playerid][Faction] == 1 || IsPlayerInRangeOfPoint(playerid, 15.0, -1209.48816, -1071.85449, 123.64065) && PlayerInfo[playerid][Faction] == 2) // Is Player within 15 meters of this gate?
{
if(MyGateIsOpen == false) // The gate is closed
{
MoveObject(impoundgate,-1209.48816, -1071.85449, 115.09575,2.0); // Open the gate
MyGateIsOpen = true;
}
else // Else the gate is open and we want it to close now
{
MoveObject(impoundgate,-1209.48816, -1071.85449, 130.83427,2); // Close the gate
MyGateIsOpen = false;
} else if(IsPlayerInRangeOfPoint(playerid, 15.0,1587.23071, -1637.87415, 14.68024) && PlayerInfo[playerid][Faction] == 1 || IsPlayerInRangeOfPoint(playerid,15.0,1587.23071, -1637.87415, 14.68024) && PlayerInfo[playerid][Faction] == 2){
if(pdGate == false) // The gate is closed
{
MoveObject(pdgate,1587.23071, -1637.87415, 9.06480,2.0); // Open the gate
pdGate = true;
}
else // Else the gate is open and we want it to close now
{
MoveObject(pdgate,1587.23071, -1637.87415, 14.68024,2); // Close the gate
pdGate = false;
}
else return SendClientMessage(playerid, COLOR_RED, "You are not authorized to use this command.");
return 1;
}
C:\Users\logan_000\Desktop\SAMP Server\gamemodes\lramos15.pwn(286) : error 017: undefined symbol "LoadAllFactions" C:\Users\logan_000\Desktop\SAMP Server\gamemodes\lramos15.pwn(1239) : error 029: invalid expression, assumed zero C:\Users\logan_000\Desktop\SAMP Server\gamemodes\lramos15.pwn(1239) : warning 215: expression has no effect C:\Users\logan_000\Desktop\SAMP Server\gamemodes\lramos15.pwn(1239) : error 001: expected token: ";", but found "if" C:\Users\logan_000\Desktop\SAMP Server\gamemodes\lramos15.pwn(1250) : warning 217: loose indentation C:\Users\logan_000\Desktop\SAMP Server\gamemodes\lramos15.pwn(1250) : error 029: invalid expression, assumed zero C:\Users\logan_000\Desktop\SAMP Server\gamemodes\lramos15.pwn(1250) : warning 215: expression has no effect C:\Users\logan_000\Desktop\SAMP Server\gamemodes\lramos15.pwn(1250) : error 001: expected token: ";", but found "return" C:\Users\logan_000\Desktop\SAMP Server\gamemodes\lramos15.pwn(1251) : warning 225: unreachable code C:\Users\logan_000\Desktop\SAMP Server\gamemodes\lramos15.pwn(1254) : warning 217: loose indentation C:\Users\logan_000\Desktop\SAMP Server\gamemodes\lramos15.pwn(1254) : error 029: invalid expression, assumed zero C:\Users\logan_000\Desktop\SAMP Server\gamemodes\lramos15.pwn(1254) : error 017: undefined symbol "cmd_giveweapon" C:\Users\logan_000\Desktop\SAMP Server\gamemodes\lramos15.pwn(1254) : error 029: invalid expression, assumed zero C:\Users\logan_000\Desktop\SAMP Server\gamemodes\lramos15.pwn(1254) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase |
CMD:gates(playerid,params[]) { if(IsPlayerInRangeOfPoint(playerid, 15.0, -1209.48816, -1071.85449, 123.64065) && PlayerInfo[playerid][Faction] == 1 || IsPlayerInRangeOfPoint(playerid, 15.0, -1209.48816, -1071.85449, 123.64065) && PlayerInfo[playerid][Faction] == 2) // Is Player within 15 meters of this gate? { if(MyGateIsOpen == false) // The gate is closed { MoveObject(impoundgate,-1209.48816, -1071.85449, 115.09575,2.0); // Open the gate MyGateIsOpen = true; } else // Else the gate is open and we want it to close now { MoveObject(impoundgate,-1209.48816, -1071.85449, 130.83427,2); // Close the gate MyGateIsOpen = false; } else if(IsPlayerInRangeOfPoint(playerid, 15.0,1587.23071, -1637.87415, 14.68024) && PlayerInfo[playerid][Faction] == 1 || IsPlayerInRangeOfPoint(playerid,15.0,1587.23071, -1637.87415, 14.68024) && PlayerInfo[playerid][Faction] == 2){ if(pdGate == false) // The gate is closed { MoveObject(pdgate,1587.23071, -1637.87415, 9.06480,2.0); // Open the gate pdGate = true; } else // Else the gate is open and we want it to close now { MoveObject(pdgate,1587.23071, -1637.87415, 14.68024,2); // Close the gate pdGate = false; } else return SendClientMessage(playerid, COLOR_RED, "You are not authorized to use this command."); return 1; }
CMD:gates(playerid,params[])
{
if(IsPlayerInRangeOfPoint(playerid, 15.0, -1209.48816, -1071.85449, 123.64065) && PlayerInfo[playerid][Faction] == 1 || IsPlayerInRangeOfPoint(playerid, 15.0, -1209.48816, -1071.85449, 123.64065) && PlayerInfo[playerid][Faction] == 2) // Is Player within 15 meters of this gate?
{
if(MyGateIsOpen == false) // The gate is closed
{
MoveObject(impoundgate,-1209.48816, -1071.85449, 115.09575,2.0); // Open the gate
MyGateIsOpen = true;
}
else // Else the gate is open and we want it to close now
{
MoveObject(impoundgate,-1209.48816, -1071.85449, 130.83427,2); // Close the gate
MyGateIsOpen = false;
}
}
else if(IsPlayerInRangeOfPoint(playerid, 15.0,1587.23071, -1637.87415, 14.68024) && PlayerInfo[playerid][Faction] == 1 || IsPlayerInRangeOfPoint(playerid,15.0,1587.23071, -1637.87415, 14.68024) && PlayerInfo[playerid][Faction] == 2)
{
if(pdGate == false) // The gate is closed
{
MoveObject(pdgate,1587.23071, -1637.87415, 9.06480,2.0); // Open the gate
pdGate = true;
}
else // Else the gate is open and we want it to close now
{
MoveObject(pdgate,1587.23071, -1637.87415, 14.68024,2); // Close the gate
pdGate = false;
}
}
else SendClientMessage(playerid, COLOR_RED, "You are not authorized to use this command.");
return 1;
}