Please help, my position is not saving to .ini when I use "gmx"
#7

There are no timers needed.

pawn Код:
YCMD:restart(playerid, params[], help)
{
    if(IsPlayerAdmin(playerid)) {// Check if the player is logged into RCON or not.
        for(new i; i < MAX_PLAYERS; i++) {// Loop through all available player slots
            if(IsPlayerConnected(i)) {// Check which of those slots are filled
                // Your save code will go here. Replace instances of 'playerid' with 'i'
            }
        }
        SendRconCommand("gmx");
    }
    else return SendClientMessage(playerid,-1,"You are not authorized to use this command.");
    return 1;
}
This is in YCMD, and will need to be converted to whatever command processor you use. If you have foreach I would also switch out my loop but this will still work.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)