Posts: 67
Threads: 17
Joined: Jan 2015
Reputation:
0
Hello all.
I have these bugs / additions : 1. When a player is killed he has wanted and is not automatically transferred from one prison only if you use the / arrest in place.
2.Where a player kills a cop , he gets people wanted + as chat faction governamentale not announced murder. thanks!
Posts: 1,004
Threads: 18
Joined: Oct 2014
Reputation:
0
Could you provide a better explanation please? I have a small clu on what you actually want to do, but I am not quite sure...
Posts: 67
Threads: 17
Joined: Jan 2015
Reputation:
0
For example: If you wanted you and I will kill the police officer must fill in jail .
Not working.
Posts: 1,004
Threads: 18
Joined: Oct 2014
Reputation:
0
Do you mean that when a player kills a police officer, he would be jailed by the system?
Posts: 561
Threads: 27
Joined: Sep 2012
Call the OnPlayerDeath,
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
new pname[24];
new killername[24];
new string[128];
GetPlayerName(playerid,pname,sizeof(pname));
GetPlayerName(killerid,killername,sizeof(killername));
if(gTeam[killerid] == YOUR CRIMINAL TEAM && gTeam[playerid] == YOUR COP TEAM)
{
SendClientMessage(killerid,-1,"You killed a police officier and you'll be teleported to the jail");
SetPlayerPos(killerid, your jail pos);
SetPlayerInterior(killerid, THE INTERIOR ID);
return 1;
}
return 1;
}
You can find the interior ID over here : http://weedarr.wikidot.com/interior
KillerDVX,
Posts: 561
Threads: 27
Joined: Sep 2012
Please, explain more. ![Sad](images/smilies/sad.gif)
Posts: 67
Threads: 17
Joined: Jan 2015
Reputation:
0
Want to Receive wanted one player kills another player or we cop
Add skype: darky.rebel1999 .. explain in chat.. skype. Tanks
Posts: 561
Threads: 27
Joined: Sep 2012
Ah you wan't to add a wanted level ? (The stars) ?
Simple ^^
Try this :
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
new pname[24];
new killername[24];
new string[128];
GetPlayerName(playerid,pname,sizeof(pname));
GetPlayerName(killerid,killername,sizeof(killername));
if(gTeam[killerid] == YOUR CRIMINAL TEAM && gTeam[playerid] == YOUR COP TEAM)
{
SendClientMessage(killerid,-1,"You killed a police officier and you'll be teleported to the jail");
SetPlayerPos(killerid, your jail pos);
SetPlayerInterior(killerid, THE INTERIOR ID);
SetPlayerWantedLevel(playerid, YOUR VALUE);
return 1;
}
return 1;
}
Don't forget to REP if it was helpful ^^
KillerDVX,