03.08.2012, 13:52
Hello everyone. I've got a little problem. When i kill a wanted person, he always respawn with 0 HP. so it's like respawning in jail forever. this are the codes:
And if you please make a reward for the guy/cop that kills a wanted person.
Thanks in advance. Hope someone will help me.
Код:
if(WantedLevel[playerid] > 0)
{
if(IsACop(killerid))
{
if(WantedLevel[playerid] == 1)
{
ResetPlayerWeapons(playerid);
PlayerInfo[playerid][pJailed] = 1;
PlayerInfo[playerid][pJailTime] = 600;
if(PlayerInfo[playerid][pDonateRank] >= 1)
{
SetPlayerInterior(playerid, 6 );
SetPlayerPos(playerid, 219.44728088379,69.380714416504,1005.0390625);
return 1;
}
else
{
SetPlayerInterior(playerid, 10 );
new rand = random(sizeof(gTurma));
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid, gTurma[rand][0], gTurma[rand][1], gTurma[rand][2]);
}
SendClientMessage(playerid,COLOR_RED," blablabla!");
SendClientMessage(killerid,COLOR_LIGHTBLUE," blablabla");
Thanks in advance. Hope someone will help me.

