29.05.2010, 17:44
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
if (PLAYERLIST_authed[playerid] == 1)
{
// Was loggedin, so save the data!
udb_setAccState(PlayerName(playerid),GetPlayerMoney(playerid));
new Float:health;
Presos[playerid] = 0;
Procurados[playerid] = 0;
GetPlayerHealth(playerid, health);
udb_setHealth(PlayerName(playerid), health);
udb_setGasoline(PlayerName(playerid), Petrol[playerid]);
udb_setProf(PlayerName(playerid), Profissao[playerid]);
}
return 1;
}