04.08.2013, 15:01
Entгo quando o player morre no meu GM ele perde 100 reais e ele precisa logar denovo e ainda ganha o dobro do dinheiro so que -100R$ alguem pode por favor me ajudar ?
OnPlayerDeath caso precise
OnPlayerDeath caso precise
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(GetPlayerWantedLevel(killerid) == 0){SetPlayerWantedLevel(killerid, 1);}
else if(GetPlayerWantedLevel(killerid) == 1){SetPlayerWantedLevel(killerid, 2);}
else if(GetPlayerWantedLevel(killerid) == 2){SetPlayerWantedLevel(killerid, 3);}
else if(GetPlayerWantedLevel(killerid) == 3){SetPlayerWantedLevel(killerid, 4);}
else if(GetPlayerWantedLevel(killerid) == 4){SetPlayerWantedLevel(killerid, 5);}
else if(GetPlayerWantedLevel(killerid) == 5){SetPlayerWantedLevel(killerid, 6);}
else if(GetPlayerWantedLevel(killerid) == 6){SetPlayerWantedLevel(killerid, 6);}
TextDrawHideForPlayer(playerid,txtTimeDisp);
SendDeathMessage(killerid, playerid, reason);
return 1;
}