14.08.2011, 13:19
Hey, when writing a /admin message, it can only write about 4-5 words, then i have to use /admin again to continue -_- How can i make it longer ? If you understand ;O
PHP код:
CMD:admin(playerid,params[])
{
new string[256];
new sendername[MAX_PLAYER_NAME];
new result[256];
GetPlayerName(playerid, sendername, sizeof(sendername));
if(sscanf(params, "s",result))
return SendClientMessage(playerid, FARBE_ROT, "(/a)dmin [TEXT]");
if(SpielerInfo[playerid][sAdministrator] == 0)
return SendClientMessage(playerid, FARBE_ROT, "You arent a admin");
if((AdminChatAus))
return SendClientMessage(playerid, FARBE_ROT, "This chat is disabled");
{
new adminstext[64];
if(SpielerInfo[playerid][sAdministrator] == 6) { adminstext = "Owner/Developer"; }
else if(SpielerInfo[playerid][sMitinhaber] == 1) { adminstext = "Co Owner"; }
else if(SpielerInfo[playerid][sAdministrator] == 5) { adminstext = "Head Admin"; }
else if(SpielerInfo[playerid][sAdministrator] == 4) { adminstext = "Admin"; }
else if(SpielerInfo[playerid][sAdministrator] == 3) { adminstext = "Low Admin"; }
else if(SpielerInfo[playerid][sAdministrator] == 2) { adminstext = "Moderator"; }
else if(SpielerInfo[playerid][sAdministrator] == 1) { adminstext = "Trial Adminstratior"; }
format(string, sizeof(string), "[%s %s]: %s", adminstext, sendername, result);
if (SpielerInfo[playerid][sAdministrator] >= 1)
{
AdministratorNachricht(FARBE_GRUEN, string,1);
}
printf("Administrator %s: %s", sendername, result);
}
return 1;
}