22.06.2011, 12:20
Why this command does not work?:
PHP код:
dcmd_Server(playerid, params[]) {
if(PlayerInfo[playerid][AdminLvl] < 20) return 0;
if(!PlayerInfo[playerid][AdminLogged])return SendClientMessage(playerid,COLOR_RED,".айрк озебш магойп");
if(!strlen(params))
return SendClientMessage(playerid,COLOR_RED,"Usage: /Server <Gmx/Exit/LoadFs/Unloadfs/Lock/Open>");
if(!strcmp(params, "LoadFs", true))
{
new fs[64];
if(sscanf(params, "s", fs)) return SendClientMessage(playerid,COLOR_WHITE,"Usage: /Server LoadFs <FS Name>");
new string[128];
format(string,128,"loadfs %s",fs);
SendRconCommand(string);
format(string,128,"Try to load FS: %s.amx... Loaded!",fs);
return SendClientMessage(playerid,COLOR_GREEN,string);
}
return true;
}