[Ajuda] Pickups - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Pickups (
/showthread.php?tid=334523)
[Ajuda] Pickups -
Geo1996 - 15.04.2012
ao dar GMX alguns Pickups somem!!!
pawn Код:
if(strcmp(cmd, "/gmx", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 5000)
{
if(admadministrando[playerid] < 1)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/administrar)");
return 1;
}
GameModeInitExitFunc();
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Voce nao tem permissao para usar esse comando!");
}
}
return 1;
}
pawn Код:
public GameModeInitExitFunc()
{
new string[256];
SendClientMessageToAll(0xB68FF6F6, " Isso e um Restart. Restart = Reiniciar o server!");
SendClientMessageToAll(0xB68FF6F6, " Nao saia do jogo voltamos em alguns segundos!");
format(string, sizeof(string), "Reiniciando...");
SalvarCofreOrg();
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
DisablePlayerCheckpoint(i);
gPlayerCheckpointStatus[i] = CHECKPOINT_Nenhum;
SetPlayerInterior(i,0);
GameTextForPlayer(i, string, 4000, 5);
SetPlayerCameraPos(i,1460.0, -1324.0, 287.2);
SetPlayerCameraLookAt(i,1374.5, -1291.1, 239.0);
OnPlayerUpdate(i);
gPlayerLogged[i] = 0;
}
}
KillTimer(synctimer);
KillTimer(newmistimer);
KillTimer(unjailtimer);
KillTimer(othtimer);
KillTimer(cartimer);
KillTimer(Contastimer);
KillTimer(checkgastimer);
KillTimer(idletimer);
KillTimer(pickuptimer);
KillTimer(productiontimer);
KillTimer(spectatetimer);
KillTimer(stoppedvehtimer);
KillTimer(turftimer);
KillTimer(weaponhacktimer);
KillTimer(scanorgtimer);
KillTimer(tempoGranaTR);
KillTimer(tempoDrogasTR);
KillTimer(TempoAdministrador);
SaveAdminLideres();
OnPropUpdate();
SaveCK();
SaveIRC();
SavePapers();
SaveBoxer();
SaveCars();
SaveVip();
SetTimer("GameModeExitFunc", 4000, 0);
return 1;
}
Re: [Ajuda] Pickups -
BlackCoder - 15.04.2012
pickups em filterscripts geralmente nao carregam denovo apos o gmx
e no lugar de GameModeInitExitFunc();
use
SendRconCommand("gmx");
Respuesta: [Ajuda] Pickups -
Geo1996 - 15.04.2012
nao e um fs mas eles estao dentro do GM
Re: [Ajuda] Pickups -
BlackCoder - 15.04.2012
troque a fuзгo como disse acima
Respuesta: [Ajuda] Pickups -
Geo1996 - 15.04.2012
vlw funcionou * for you
Re: Respuesta: [Ajuda] Pickups -
BlackCoder - 15.04.2012
Quote:
Originally Posted by Geo1996
vlw funcionou * for you
|
thanx man ^^