12.06.2010, 10:19
Hi. I wonder if it's possible to load a certain filterscript when I restart my gamemode in-game with a command like this;
And if that doesn't work, is it possible to make the gamemode quit by itself (the same way when you type "exit" in samp-server.exe) and then after a short time let it start again?
Thanks.
pawn Code:
if(strcmp(cmd, "/gmx", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 5)
{
GameModeRestart();
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command");
}
}
return 1;
}
Thanks.