if(newcar == 152 || newcar == 153 || newcar == 154 || newcar == 155 || newcar == 156 || newcar == 157 || newcar == 158 ||newcar == 159 || newcar == 160 || newcar == 161 || newcar == 162) { if(PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6) { } else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid,COLOR_GREY,"{30a030}[GameFront]: {ffffff}Ne pare rau, dar nu faci parte din factiunea {30a030}Yakuza{ffffff}."); RemovePlayerFromVehicle(playerid); } } |
switch(newcar) {
case 152..162: {
if(!(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6))
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,COLOR_GREY,"{30a030}[GameFront]: {ffffff}Ne pare rau, dar nu faci parte din factiunea {30a030}Yakuza{ffffff}.");
return 1;
}
}
}
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,COLOR_GREY,"{30a030}[GameFront]: {ffffff}Ne pare rau, dar nu faci parte din factiunea {30a030}Yakuza{ffffff}.");
RemovePlayerFromVehicle(playerid);
if(strcmp(cmd, "/duty", true) == 0) { if(IsPlayerConnected(playerid)) { GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4) { if(JobDuty[playerid] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "» Din pacate acuma esti Off-Dury."); JobDuty[playerid] = 0; Medics -= 1; } else { SendClientMessage(playerid, COLOR_LIGHTBLUE, "» Felicitari, ti-ai ridicat echipamentu si te-ai facut On-Duty."); JobDuty[playerid] = 1; Medics += 1; } } else if(PlayerInfo[playerid][pJob] == 6) { if(JobDuty[playerid] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "» Din pacate esti Off-Duty de la Job-ul Car Mechanic."); JobDuty[playerid] = 0; Mechanics -= 1; } else { SendClientMessage(playerid, COLOR_LIGHTBLUE, "» Felicitari, acuma esti On-Duty la Job-ul Car Mechanic."); JobDuty[playerid] = 1; Mechanics += 1; } } else { SendClientMessage(playerid, COLOR_GRAD1, "{30a030}[GameFront]: {ffffff}Ne pare rau, dar nu faci parte din factiunea {3c54fc}PD{ffffff} sau {3c54fc}FBI{ffffff}."); } } return 1; } |