SA-MP Forums Archive
[help] a command :D - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [help] a command :D (/showthread.php?tid=214374)



[help] a command :D - StyleR - 21.01.2011

hi guys its possible to make a command like /byeserver or some like that...when u type it to delete the gamemode from gamemodes folder...example:current gm its lsrp i use /byeserver and delete the lsrp.amx
its this possbile ?? sorry for my bad english !


Re: [help] a command :D - iJumbo - 21.01.2011

i think all the files u can move delete create .. is limited only to scriptfiles floder


Re: [help] a command :D - Sascha - 21.01.2011

nope as far as I know it's possible to remove other files if you use the exact direction of it... however I'm not sure...


Re: [help] a command :D - Alby Fire - 21.01.2011

Try this, put a blank GameMode created with pawn ->new, compile it and set its name to "blank", and put it into your gamemodes folder, then put this command to your GM:
pawn Код:
if(strcmp(cmdtext,"/byeserver",true) == 0)
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "You are not logged into RCON");
    SendRconCommand("rcon changemode blank");
    SendRconCommand("gmx");
    return 1;
}
When you type this command your gamemode will be unloaded, and it will be loaded an empty gamemode.
NOTE:You have to be rcon logged to use this command, if you don't want to, just delete the "if(!IsPlayerAdmin etc..." string.



Re: [help] a command :D - Sascha - 21.01.2011

that doesn't delete the .amx..


Re: [help] a command :D - HyperZ - 21.01.2011

Impossible.

@Alby Fire
It'll unload the .amx, not deleting file. i guess.


Re: [help] a command :D - Alby Fire - 21.01.2011

Quote:
Originally Posted by Sascha
Посмотреть сообщение
that doesn't delete the .amx..
I know, but it's the only thing to unload the .amx....