07.11.2010, 16:32
(
Последний раз редактировалось Kasura; 08.11.2010 в 00:16.
)
RESOLVIDO
public OnPlayerDeath(playerid,killerid,reason)
{
SendDeathMessage(killerid,playerid,reason);
if(IsPlayerConnected(killerid))
{
SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
EXP[killerid] += 1;
status[killerid][0] += 1;
}
GameTextForPlayer(playerid, "~r~Morreu kkkkk!", 5000, 2);
TextDrawShowForPlayer(playerid, Textdraw0[playerid]);
TextDrawShowForAll(Textdraw3);
TextDrawShowForAll(Textdraw4);
TextDrawShowForAll(Textdraw1);
TextDrawShowForAll(Textdraw2);
SetPlayerScore(playerid,GetPlayerScore(playerid)-1);
EXP[playerid] -= 1;
status[playerid][1] -= 1;
if(Equipe[playerid] == Time_Marinha)
{
Exercito += 1;
}
else if(Equipe[playerid] == Time_Exercito)
{
Marinha += 1;
}
return 1;
}