16.10.2012, 21:00
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid,playerid,reason);
hospital[playerid]= 1;
Kitvip[playerid]= 1;
PlayerInfo[playerid][Morreu]++;
PlayerInfo[playerid][EXP]--;
PlayerInfo[killerid][EXP]++;
if(IsPlayerConnected(killerid)){
PlayerInfo[killerid][Matou]++;
}
if(PlayerInfo[playerid][pProcurados] >= 1){
if(PlayerInfo[killerid][pBOPE] >= 1 || PlayerInfo[killerid][pROTA] >= 1){
SetPlayerWantedLevel(playerid, 0);
PlayerInfo[playerid][pProcurados] = 0;
format(String, sizeof(String), "<< O procurado da justiзa %s foi preso pelo Polнcial %s >>", Nome(playerid), Nome(killerid));
SendClientMessageToAll(COLOR_KICK,String);
PlayerInfo[playerid][Preso1] = 2;
SpawnPlayer(playerid); //adicionado nao sei se vai resolver mais tenta ae
}
}
return 1;
}