How can I script a /me CMD? | Beginner Scripter
#6

pawn Код:
if(strcmp(cmdtext,"/me",true,3)== 0)
    {
        if ( cmdtext[ 3 ] != ' ' || !cmdtext[ 4 ] )
        return SendClientMessage( playerid, -1, "USAGE: /me (action)" );
        new pName[MAX_PLAYER_NAME],string[128];
        GetPlayerName(playerid,pName,sizeof(pName));
        format(string,sizeof(string),"**%s%s.",pName,cmdtext[3]);
        SendClientMessageToAll(0xFFFFFFFF,string);
            return 1;
    }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)