ERRO NO GM
#6

[pawn]public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid,playerid,reason);
/*if(emguerra[playerid] == 1)
{
format(gstring, 128, "%s saiu da zona de guerra!", PlayerName(playerid));
SendClientMessageToAll(GetPlayerColor(playerid), gstring);
emguerra[playerid] = 0;
}*/
//new dmessage[128];
//new deathreason[20];
new Floatx,Floaty,Floatz;
PlayerInactivity[playerid] = 0;
DropVida(playerid);
//DropGrana(playerid);
gPlayerSpawned[playerid] = 0;
PlayerInfo[playerid][pLocal] = 255;
GetPlayerPos(playerid, px, py, pz);
spawnado[playerid] = 0;
if (gPlayerTerminal[playerid] != 0)
{
BusrouteEnd(playerid);
}
if(PlayerPaintballing[killerid] == 0 && IsPlayerInFazenda(playerid) == 0 && IsPlayerInFavela(playerid) == 0 && IsPlayerInSkate(playerid) == 0
&& IsPlayerInEstacao(playerid) == 0 && IsPlayerInCasarao(playerid) == 0 && IsPlayerInArenaX1(playerid) == 0)
{
SetPlayerCriminal(killerid, 255, "Assassinato");
PlayerInfo[killerid][pKills] += 1;
}
if(TendoGuerra == 1 && IsPlayerInTerritorio(playerid) && IsPlayerInTerritorio(killerid))
{
if(PlayerInfo[killerid][pMembro] == 3 || PlayerInfo[killerid][pLider] == 3)
{
if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
{
Territorio[talmortos] += 1;
}
if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)
{
Territorio[almortos] += 1;
}
}
if(PlayerInfo[killerid][pMembro] == 6 || PlayerInfo[killerid][pLider] == 6)
{
if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
{
Territorio[exemortos] += 1;
}
if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)
{
Territorio[almortos] += 1;
}
}
if(PlayerInfo[killerid][pMembro] == 15 || PlayerInfo[killerid][pLider] == 15)
{
if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
{
Territorio[exemortos] += 1;
}
if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
{
Territorio[talmortos] += 1;
}
}
}
if(InvitedDuel[killerid] == true)
{
new Float:healthkiller;
new namekiller[24],namedeather[24],string[44];
GetPlayerName(killerid, namekiller, 24);
GetPlayerName(playerid, namedeather, 24);
GetPlayerHealth(killerid,healthkiller);
format(string, sizeof(string), "»»[BPS-DUEL]«« : %s Ganhou Duelo de %s com %0.0f de energia (Colete & Vida)",namekiller,namedeather,healthkiller);
SendClientMessageToAll(0x0000BBAA, string);
InvitedDuel[killerid] = false;
InvitedDuel[playerid] = false;
IdDuel[playerid] = playerid;
IdDuel[killerid] = killerid;
ArenaUsada > 1;
healthkiller = 0;
SpawnPlayer(killerid);[/pawn ]




qual dessas coisas apago ?
Reply


Messages In This Thread
ERRO NO GM - by igor martins - 21.07.2011, 23:11
Re: ERRO NO GM - by [BEP]AcerPilot - 21.07.2011, 23:18
Re: ERRO NO GM - by igor martins - 21.07.2011, 23:26
Re: ERRO NO GM - by [BEP]AcerPilot - 21.07.2011, 23:28
Re: ERRO NO GM - by Gabriel Duarte - 21.07.2011, 23:30
Re: ERRO NO GM - by igor martins - 21.07.2011, 23:34
Re: ERRO NO GM - by Gabriel Duarte - 21.07.2011, 23:43
Re: ERRO NO GM - by JonathanFeitosa - 21.07.2011, 23:46
Re: ERRO NO GM - by Gabriel Duarte - 21.07.2011, 23:52
Re: ERRO NO GM - by igor martins - 21.07.2011, 23:53

Forum Jump:


Users browsing this thread: 2 Guest(s)