SA-MP Forums Archive
Callback. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Callback. (/showthread.php?tid=366402)



Callback. - TaLhA XIV - 06.08.2012

Hello,
I wanted to ask that is there a callback like "OnServerRestart",Please help I wanted it.
Thanks.


Re: Callback. - LetsOWN[PL] - 06.08.2012

No, there is not such callback.

Greetz,
LetsOWN



Re: Callback. - TaLhA XIV - 06.08.2012

Anything else that can help me?


Re: Callback. - Devilxz97 - 06.08.2012

pawn Код:
forward OnServerRestart(playerid);
public OnServerRestart(playerid)
{
    SendRconCommand("gmx");
    return 1;
}
like that ? xD


Re: Callback. - TaLhA XIV - 06.08.2012

Hey thanks bro not even tested but looks cooooooooooooool.+rep.

Thanks but can you make it like that when the server restarts for all,I don't want it to happen when it restarts for a specific player,I want it to react when the server restarts for all.Thanks bro.


Re: Callback. - Devilxz97 - 06.08.2012

peace


Re: Callback. - MoNeY_Co0oLzZz - 06.08.2012

No, Callback There!

xD
Regards,
MoNeY


Re: Callback. - Devilxz97 - 06.08.2012

Quote:
Originally Posted by MoNeY_Co0oLzZz
Посмотреть сообщение
No, Callback There!

xD
Regards,
MoNeY
no callbacks ?
what do u means ?


Re: Callback. - BlackBank - 06.08.2012

There is no callback like 'OnServerRestart'.

There is a sort of callback, but it will be called if the gamemode will be changed, and that is 'OnGameModeExit'.


Re: Callback. - Devilxz97 - 06.08.2012

yes .