13.07.2016, 05:07
PHP код:
public OnPlayerDisconnect(playerid, reason)
{
new query[128];
mysql_format(mysql, query, sizeof(query), "UPDATE `database` SET `pEXP` = %d, `Premium` = %d, `pAdminLevel` = %d,",
pInfo[playerid][pEXP], pInfo[playerid][Premium], pInfo[playerid][pAdminLevel]);
mysql_tquery(mysql, query, "", "");
SetPVarInt(playerid, "laser", 0);
RemovePlayerAttachedObject(playerid, 0);
if(InfectedLeft[playerid] == 1)
{
ZombieTimer = SetTimer("ZombieCounts",3000,1);
InfectedLeft[playerid] = 0;
}
return 1;
}