[help] a command :D
#1

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 !
Reply
#2

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

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...
Reply
#4

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.
Reply
#5

that doesn't delete the .amx..
Reply
#6

Impossible.

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)