Machs mit OCMD...
Hier mal meine Befehle mit OCMD
ocmd:a(playerid,params[])
{
if(Spieler[playerid][Admin] <= 1)return SendClientMessage(playerid,COLOR_GREY,"Du bist kein Administrator!");
new sendername[MAX_PLAYER_NAME], string[180];
if(sscanf(params,"s",string))return SendClientMessage(playerid,COLOR_GREY,"FEHLER: /a [Text]");
GetPlayerName(playerid, sendername, sizeof(sendername));
if(Spieler[playerid][Admin] <= 2)
{
format(string, sizeof(string), "(( Supporter %s: %s ))", sendername, string);
SendAdminMessage(COLOR_YELLOW, string);
}
if(Spieler[playerid][Admin] == 3)
{
format(string, sizeof(string), "(( Admin %s: %s ))", sendername, string);
SendAdminMessage(COLOR_YELLOW, string);
}
if(Spieler[playerid][Admin] == 4)
{
format(string, sizeof(string),"(( High-Admin %s: %s ))", sendername, string);
SendAdminMessage(COLOR_YELLOW, string);
}
if(Spieler[playerid][Admin] == 5)
{
format(string,sizeof(string),"(( Head-Admin %s: %s ))", sendername, string);
SendAdminMessage(COLOR_YELLOW, string);
}
printf("((ADMINCHAT %s: %s ))",sendername, string);
return 1;
}
Das war /a
Hast da sogar nen kleinen Log drinne.
ocmd:o(playerid,params[])
{
new sendername[MAX_PLAYER_NAME], string[180];
if(sscanf(params,"s",string))return SendClientMessage(playerid,COLOR_GREY,"FEHLER: /o(oc) [Text]");
GetPlayerName(playerid,sendername, sizeof(sendername));
format(string, sizeof(string), "(( %s: %s ))", sendername, string);
SendClientMessageToAll(COLOR_WHITE, string);
printf("((OOC %s: %s ))",sendername, string);
return 1;
}
/o mit kleinem Log. :p
Viel Spaß