Hi,#
ich habe jetzt einen Command erstellt:
if (strcmp(cmdtext, "/admincmds", true)==0)
{
SendClientMessage(playerid, COLOR_RED, "[ADMIN COMMANDS]");
SendClientMessage(playerid, COLOR_YELLOW, "[CMDS (1)] /kick /ban /say /banip /unbanip /freeze /unfreeze");
SendClientMessage(playerid, COLOR_YELLOW, "[CMDS (2)] /killplayer /jail /unjail /slap /mute /unmute");
SendClientMessage(playerid, COLOR_YELLOW, "[CMDS (3)] /explodeplayer /resetweapons /restart");
SendClientMessage(playerid, COLOR_YELLOW, "[CMDS (4)] /announce /lockserver /unlocksever /specplayer");
SendClientMessage(playerid, COLOR_YELLOW, "[CMDS (5)] /specvehicle /specoff /settime /cs /setweather");
SendClientMessage(playerid, COLOR_YELLOW, "[CMDS (6)] /loadfs /unloadfs /reloadfs");
return 1;
}
So, ich will das der Command nur mit einem Passwort funzt z.B. hallo
Wenn man /admincmds eingibt soll das kommen: /admincmds [pw]
MfG mAggi