14.04.2012, 21:44
tente
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(PlayerInPaintBall[playerid])
{
if(killerid != INVALID_PLAYER_ID)
{
MorreuPB[killerid] ++;
GivePlayerMoney(killerid, 800);
new string [128];
format(string, sizeof(string), "%s Matou %s no Evento de PaintBall e Recebeu $800...", PlayerName(killerid), PlayerName(playerid));
Loop(i, MAX_PLAYERS)
{
if(PlayerInPaintBall[i])
{
SendClientMessage(i, COR_VERMELHO, string);
}
}
SetPlayerWantedLevel(killerid, 0);
MorreuPB[playerid] = 0;
SetPlayerPos(playerid, X, Y, Z);//Altere para as coord. do paintball
}
}
return 1;
}