03.08.2015, 13:25
Tente isto por gentileza:
Atй mais!
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
new Float:x, Float:y, Float:z, Float:angle, sennior[30], aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname,sizeof(aname));
format(sennior, sizeof(sennior), PASTA_CONTAS, aname);
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, angle);
dini_FloatSet(sennior, "UltimaPosicaoX", x);
dini_FloatSet(sennior, "UltimaPosicaoY", y);
dini_FloatSet(sennior, "UltimaPosicaoZ", z);
dini_FloatSet(sennior, "UltimoAngulo", angle);
// Aqui pra baixo й da GM mesmo!
DeletePVar(playerid, "PlayerMorto");
PlayerInfo[playerid][pOnline] = 0;
SalvarPlayer(playerid);
new caller = Mobile[playerid];
new nome[24], str[50];
GetPlayerName(playerid, nome, 24);
format(str, sizeof str, "%s - Arara", nome);
dini_BoolSet("Araras.ini", str, Infoa[playerid][Arara]);
format(str, sizeof str, "%s - Racao", nome);
dini_BoolSet("Araras.ini", str, Infoa[playerid][Racao]);
format(str, sizeof str, "%s - Grande", nome);
dini_IntSet("Araras.ini", str, Infoa[playerid][Grande]);
if(caller != 255)
{
...(Comandos da GM abaixo)