29.12.2015, 08:05
I have two problems with that.
1.reset all player score and money after restart.
2.When I disable the code Again works.
1.reset all player score and money after restart.
2.When I disable the code Again works.
PHP код:
CMD:rserver(playerid, params[])
{
if(COptions[rserver] == 0)
{
new adminname[MAX_PLAYER_NAME];
if(PlayerInfo[playerid][pAdmin] >= CmdsOptions[rserver])
{
GetPlayerName(playerid, adminname, sizeof(adminname));
new str[128];
format(str,128,"Admin %s (id:%d) has restarted server!",adminname, playerid);
SendClientMessageToAll(COLOR_BLUE,str);
SendRconCommand("gmx");
return 1;
}
else return SendClientMessage(playerid,COLOR_RED,"You do not have permission to use this command!");
}
else return SendClientMessage(playerid,COLOR_RED,"[ERROR]:You cant use this command because disabled by God.");
}