if (strcmp("/sweeper", cmdtext, true, 10) == 0)
{
if(IsPlayerConnected(playerid))
{
if (spot[playerid] == SPOT_SWEEPER)
{
if(PlayerInfo[playerid][pJob] == 0)
{
if(PlayerInfo[playerid][pCivilian] == 1)
{
if(PlayerInfo[playerid][pCarLic] == 1)
{
if(sweeper <= 4)
{
sweeper++
if(PlayerInfo[playerid][pPolice] == 0 || PlayerInfo[playerid][pAci] == 0)
{
accept_b[playerid] = ACCEPT_SWEEPER;
SendClientMessage(playerid,COLOR_WHITE,"* in order to start this job type /accept job, or to deny /deny job.");
}
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Job Station: were sorry, but all the sweeper slots in use this moment");
}
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Job Station: You can't work here if you dont have a driving license!");
}
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Job Station: Only civilians can work here!");
}
}
else
{
SendClientMessage(playerid,COLOR_GREY,"Job Station: you cant work here right now,finish your job and try again late.");
}
}
else
{
SendClientMessage(playerid,COLOR_GREY,"SERVER: Command not allowed in this location");
}
}
return 1;
}