Chat message
#1

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(playeridsendernamesizeof(sendername));
       if(
sscanf(params"s",result))
    return 
SendClientMessage(playeridFARBE_ROT"(/a)dmin [TEXT]");
    if(
SpielerInfo[playerid][sAdministrator] == 0)
    return 
SendClientMessage(playeridFARBE_ROT"You arent a admin");
    if((
AdminChatAus))
    return 
SendClientMessage(playeridFARBE_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(stringsizeof(string), "[%s %s]: %s"adminstextsendernameresult);
        if (
SpielerInfo[playerid][sAdministrator] >= 1)
        {
            
AdministratorNachricht(FARBE_GRUENstring,1);
        }
        
printf("Administrator %s: %s"sendernameresult);
    }
    return 
1;
 } 
Reply
#2

pawn Код:
new adminstext[256];
?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)