Problems with wanted / suspect kill
#1

Hello guys,


I'm new to the scripting and I had some small problems if you can help me and tell me what you need to give from GM.
Problems:


1.When a civillian make kill on a cop/player show him current wanted lvl 1 and show his star how should.
If a cop write /wanted does not appear to respectively player have wanted but the player have wanted, if kill him not put him in jail as he should and just respawn and put him back in house or player spawn and the wanted is the same.

But when a Cop give wanted to a player that player take wanted correctly and if a cop kill him put him in jail correctly and appears how should.

2.When you register to put a red mark on the map where you have to go to get the license and can not drive the car until you get the exam.I have the system of exam but only want to do this to not be allowed to drive without license and put a red mark on the map where to go.


3.If you are in jail and kill another player who is in jail that player take wanted even if you're in jail already
and arrested.... I want to not receive wanted if a kill the guy in jail when he's arrested.

I hope to help with these problems.

Thank you, I wish you only good
Reply
#2

Hiya,
Showing wanted people,

pawn Код:
CMD:wanted(playerid, params[])
{
for (new i = 0; i != MAX_PLAYERS; ++i)
{
    if (IsPlayerConnected(i))
    {
new string[128], wanted;
wanted = GetPlayerWantedLevel(i);
                if(wanted > 0) return SendClientMessage(playerid, -1, “No Wanted Players online”);
{
Format(string, sizeof(string),” %s”, PlayerName(i));
SendClientMessage(playerid, -1, string);
}
        }
}
Return 1;
}
Jailing wanted people when they are killed,

pawn Код:
Public OnPlayerDeath(playerid, killerid, reason)
{
New wanted;
Wanted = GetPlayerWantedLevel(playerid);
If(wanted > 0);
SetPlayerPos(jail cords);
SendClientMessage(playerid, -1, “You are jailed”;
Return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)