14.03.2014, 00:55
fiz um novo code para vc (o.O Hoje to bomzinho)
sera que funfa?? e possivel
sera que funfa?? e possivel
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
KillTimer(savespawn[playerid]);
KillTimer(titi);
FazendoTeste[playerid] = 0;
SalvarPlayer(playerid);
SaveCar(playerid);
MSG_Preso[playerid] = 0;
KillTimer(timerDominando[playerid]);
if(dominando[playerid] == 1)
{
if(gzDominando[playerid] == 1)
GangZoneShowForAll(GZFavela, CORTR_NINGUEM);
if(gzDominando[playerid] == 2)
GangZoneShowForAll(GZParque, CORTR_NINGUEM);
if(gzDominando[playerid] == 3)
GangZoneShowForAll(GZEstacao, CORTR_NINGUEM);
if(gzDominando[playerid] == 4)
GangZoneShowForAll(GZCasarao, CORTR_NINGUEM);
if(gzDominando[playerid] == 5)
GangZoneShowForAll(GZRoda, CORTR_NINGUEM);
}
ResetStats(playerid)
switch(reason)
{
case 0: format(String, 44, "%s crashou do servidor", pNome(playerid));
case 1: format(String, 60, "%s saiu do servidor por conta propria", pNome(playerid));
case 2: format(String, 60, "%s saiu do servidor kickado ou banido", pNome(playerid));
}
ProxDetectorDJ(playerid, String, COR_AMARELO, 80.0);
mandoumensagem[playerid] = 0;
if(Teste[playerid] == 1)
{
DestroyVehicle(V[playerid]);
}
return 1;
}
stock ResetStats(playerid)
{
PlayerCuffed[playerid] = 0;
InfoGabriel[playerid][pKeyCar] = -1;
InfoGabriel[playerid][pAdmin] = 0;
InfoGabriel[playerid][pNivel] = 0;
InfoGabriel[playerid][pGrana] = 0;
InfoGabriel[playerid][pSexo] = 0;
InfoGabriel[playerid][pTutorial] = 0;
InfoGabriel[playerid][pPais] = 0;
InfoGabriel[playerid][pLCarro] = 0;
InfoGabriel[playerid][pLMoto] = 0;
InfoGabriel[playerid][pLAviao] = 0;
InfoGabriel[playerid][pBanco] = 0;
InfoGabriel[playerid][pMatou] = 0;
InfoGabriel[playerid][pMorreu] = 0;
InfoGabriel[playerid][pSafeDroga] = 0;
InfoGabriel[playerid][pSenhaBanco] = 0;
InfoGabriel[playerid][pLastLogin] = 0;
InfoGabriel[playerid][pColete] = 0;
InfoGabriel[playerid][pkeyBizz] = -1;
InfoGabriel[playerid][ptimeVip] = -1;
InfoGabriel[playerid][pmesVip] = -1;
InfoGabriel[playerid][pQuartoHotel] = 0;
InfoGabriel[playerid][ptimeSVip] = -1;
InfoGabriel[playerid][pmesSVip] = -1;
InfoGabriel[playerid][pNumver] = 0;
InfoGabriel[playerid][pNivelProcurado] = 0;
InfoGabriel[playerid][pPos_x] = 1612.3240;
InfoGabriel[playerid][pPos_y] = -2330.1670;
InfoGabriel[playerid][pPos_z] = 13.5469;
InfoGabriel[playerid][pPos_a] = 13.5469;
InfoGabriel[playerid][pLArma] = 0;
InfoGabriel[playerid][pMembro] = 0;
InfoGabriel[playerid][pSkin] = 0;
InfoGabriel[playerid][pVip] = 0;
InfoGabriel[playerid][pCamisinha] = 0;
InfoGabriel[playerid][pCorda] = 0;
InfoGabriel[playerid][pFita] = 0;
InfoGabriel[playerid][pGps] = 0;
InfoGabriel[playerid][pCigarro] = 0;
InfoGabriel[playerid][pCadeia] = 0;
InfoGabriel[playerid][pTempoCadeia] = 0;
InfoGabriel[playerid][pChaveCasa] = -1;
InfoGabriel[playerid][pRespeito] = 0;
InfoGabriel[playerid][pHorasJogadas] = 0;
InfoGabriel[playerid][pLastHour] = 0;
InfoGabriel[playerid][pMateriais] = 0;
InfoGabriel[playerid][pkeysBizz] = -1;
InfoGabriel[playerid][pdiaVip] = -1;
InfoGabriel[playerid][panoVip] = -1;
InfoGabriel[playerid][pdiaSVip] = -1;
InfoGabriel[playerid][panoSVip] = -1;
InfoGabriel[playerid][pNumber] = 0;
InfoGabriel[playerid][pMaxHealth] = 0;
PosicaoDeslogar[playerid] = 1;
return 1;
}