if(strcmp(cmd, "/oruzije", true) == 0)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo == 5 || PlayerInfo == 5)
{
if (PlayerToPoint(3, playerid,2325.0017,-1014.9199,1054.7111))
{
if(OnDuty==0)
{
if(PlayerInfo == 5 || PlayerInfo == 5)
{
format(string, sizeof(string), "* %s je uzeo oruzije iz ormarica.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeGivePlayerWeapon(playerid, 5, 70);
SetPlayerColor(playerid, 0x8D8DFF00);
OnDuty = 1;
}
else if(OnDuty==1)
{
if(PlayerInfo == 5 || PlayerInfo == 5)
{
format(string, sizeof(string), "* %s stavlja oruzije u svoj ormaric.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeResetPlayerWeapons(playerid);
SetPlayerColor(playerid, 4294901930);
OnDuty = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Niste u prostoriji sa ormaricima !");
return 1;
}
}
if(PlayerInfo == 6 || PlayerInfo == 6)
{
if (PlayerToPoint(3, playerid,1258.1849,-796.3237,1084.2344))
{
if(OnDuty==0)
{
if(PlayerInfo == 6 || PlayerInfo == 6)
{
format(string, sizeof(string), "* %s je uzeo oruzije iz ormarica.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeGivePlayerWeapon(playerid, 5, 70);
SetPlayerColor(playerid, 0x8D8DFF00);
OnDuty = 1;
}
else if(OnDuty==1)
{
if(PlayerInfo == 6 || PlayerInfo == 6)
{
format(string, sizeof(string), "* %s stavlja oruzije u svoj ormaric.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeResetPlayerWeapons(playerid);
SetPlayerColor(playerid, 4294901930);
OnDuty = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Niste u prostoriji sa ormaricima !");
return 1;
}
}
if(PlayerInfo == 8 || PlayerInfo == 8)
{
if (PlayerToPoint(3, playerid,311.6524,-169.5158,999.5938))
{
if(OnDuty==0)
{
if(PlayerInfo == 8 || PlayerInfo == 8)
{
format(string, sizeof(string), "* %s je uzeo oruzije iz ormarica.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeGivePlayerWeapon(playerid, 5, 70);
SetPlayerColor(playerid, 0x8D8DFF00);
OnDuty = 1;
}
else if(OnDuty==1)
{
if(PlayerInfo == 8 || PlayerInfo == 8)
{
format(string, sizeof(string), "* %s stavlja oruzije u svoj ormaric.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeResetPlayerWeapons(playerid);
SetPlayerColor(playerid, 4294901930);
OnDuty = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Niste u prostoriji sa ormaricima !");
return 1;
}
}
if(PlayerInfo == 12 || PlayerInfo == 12)
{
if (PlayerToPoint(3, playerid,326.6436,307.2555,999.1484))
{
if(OnDuty==0)
{
if(PlayerInfo == 12 || PlayerInfo == 12)
{
format(string, sizeof(string), "* %s je uzeo oruzije iz ormarica.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeGivePlayerWeapon(playerid, 5, 70);
SetPlayerColor(playerid, 0x8D8DFF00);
OnDuty = 1;
}
else if(OnDuty==1)
{
if(PlayerInfo == 12 || PlayerInfo == 12)
{
format(string, sizeof(string), "* %s stavlja oruzije u svoj ormaric.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeResetPlayerWeapons(playerid);
SetPlayerColor(playerid, 4294901930);
OnDuty = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Niste u prostoriji sa ormaricima !");
return 1;
}
}
if(PlayerInfo == 15 || PlayerInfo == 15)
{
if (PlayerToPoint(3, playerid,2496.9072,-1696.7539,1014.7422))
{
if(OnDuty==0)
{
if(PlayerInfo == 15 || PlayerInfo == 15)
{
format(string, sizeof(string), "* %s je uzeo oruzije iz ormarica.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeGivePlayerWeapon(playerid, 5, 70);
SetPlayerColor(playerid, 0x8D8DFF00);
OnDuty = 1;
}
else if(OnDuty==1)
{
if(PlayerInfo == 15 || PlayerInfo == 15)
{
format(string, sizeof(string), "* %s stavlja oruzije u svoj ormaric.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeResetPlayerWeapons(playerid);
SetPlayerColor(playerid, 4294901930);
OnDuty = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Niste u prostoriji sa ormaricima !");
return 1;
}
}
if(PlayerInfo == 16 || PlayerInfo == 16)
{
if (PlayerToPoint(3, playerid,502.1548,-78.5391,998.7578))
{
if(OnDuty==0)
{
if(PlayerInfo == 16 || PlayerInfo == 16)
{
format(string, sizeof(string), "* %s je uzeo oruzije iz ormarica.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeGivePlayerWeapon(playerid, 5, 70);
SetPlayerColor(playerid, 0x8D8DFF00);
OnDuty = 1;
}
else if(OnDuty==1)
{
if(PlayerInfo == 16 || PlayerInfo == 166)
{
format(string, sizeof(string), "* %s stavlja oruzije u svoj ormaric.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeResetPlayerWeapons(playerid);
SetPlayerColor(playerid, 4294901930);
OnDuty = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Niste u prostoriji sa ormaricima !");
return 1;
}
}
return 1;
}
}