31.01.2018, 21:01
Quote:
it doesnt shows any message from here?
Код:
if(GetTeam{playerid} == CLASS_CIV || GetTeam{playerid} == CLASS_MEDIC) return SendClientMessage(playerid, RED, "Only law enforcement can arrest players."); if(GetPlayerInterior(targetid) > 0) return SendClientMessage(playerid, red, "ERROR: You can't arrest players inside an interior."); if(sscanf(params, "ui", targetid)) SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[POLICE]: {FFFFFF}/arrest(/ar) [ID / NAME]"); if(GetPVarInt(playerid,"ArTime")>GetTickCount())return SendClientMessage(playerid,0xFF0000FF,"{FF0000}[Please wait]: {FFFFFF}Just Wait 5 seconds before arresting a suspect again."); if(PlayerInfo[targetid][pJailed] == 1) return SendClientMessage(playerid, red, "This player is already in jail,you can't arrest him."); if(IsPlayerInAnyVehicle(targetid)) return SendClientMessage(playerid,red,"You can't arrest players if they're in a vehicle."); if(GetPlayerWantedLevel(targetid) <= 3) return SendClientMessage(playerid, red, "{FF0000}ERROR: {FFFFFF}No nearby players are wanted highly enough to receive a ticket."); if(playerid == targetid) return SendClientMessage(playerid,red, "[ERROR]: You cannot arrest yourself."); if(playerid, gTeam[playerid] == CLASS_COPS && gTeam[targetid] == CLASS_ARMY && gTeam[playerid] == CLASS_SWAT && gTeam[playerid] == CLASS_CIA && gTeam[playerid] == CLASS_FBI) return SendClientMessage(playerid,red, "You can't arrest who is in your team."); GetPlayerPos(targetid, targetidpos[0], targetidpos[1], targetidpos[2]); if (!IsPlayerInRangeOfPoint(playerid, 5.0, targetidpos[0], targetidpos[1], targetidpos[2])) return SendClientMessage(playerid, -1, "Nobody close enough to arrest."); |