17.03.2011, 20:44
pawn Код:
CMD:ann(playerid, params[]) {
// Replace 'IsPlayerAdmin(playerid)' with a check for your scripts admin levels.
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFFFF00AA, "You are not an admin or do not retain the sufficient power to execute this command.");
if(isnull(params)) return SendClientMessage(playerid, 0xFFFF00AA, "Usage: /ann [announcement]");
SendClientMessageToAll(0xFFFF00AA, params);
return 1;
}
CMD:startfs(playerid, params[]) {
// Replace 'IsPlayerAdmin(playerid)' with a check for your scripts admin levels.
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFFFF00AA, "You are not an admin or do not retain the sufficient power to execute this command.");
if(isnull(params)) return SendClientMessage(playerid, 0xFFFF00AA, "Usage: /startfs [filterscript]");
new
szCommand[128]; // Arbitrary size as I'm unsure of the size of your FS names...
format(szCommand, sizeof(szCommand), "loadfs %s", params);
SendRconCommand(szCommand);
return 1;
}