15.06.2012, 01:11
pawn Код:
//topo do script
new bool:IsInX1[MAX_PLAYERS]
//dentro do comando:
IsInX1[MAX_PLAYERS] = true;
public OnPlayerDeath(playerid, killerid, reason)
{
new string[128],Kpname[MAX_PLAYER_NAME],Dpname[64]
if(IsInX1[killerid] = true && IsInX1[playerid] = true)
{
GetPlayerName(playerid, Dpname, sizeof(Dpname));
GetPlayerName(killerid, Kpname, sizeof(Kpname));
format(string,sizeof(string),"%s Matou %s no X1w",Kpname,Dpname);
SendClientMessageToAll(-1,string);
IsInX1[playerid] = false;
IsInX1[killerid] = false;
}
return 1;
}