Messages realy short =s
#2

New command:

pawn Код:
CMD:o(playerid, params[]) {
    if(OOC == true) {
    new message[128], pname[MAX_PLAYER_NAME], cmessage[128];
    GetPlayerName(playerid, pname, sizeof(pname));
    if(sscanf(params, "s[128]", message)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /o (message)");
    format(cmessage, sizeof(cmessage), "(( OOC: %s: %s ))", pname, message);
    SendClientMessageToAll(COLOR_GREY, cmessage);
    } else {
    SendClientMessage(playerid, COLOR_GREY, "SERVER: The OOC chat is turned off.");
    }
    return 1;
}
Try it .
Reply


Messages In This Thread
Messages realy short =s - by Stefans94 - 08.10.2011, 21:33
Re: Messages realy short =s - by mitosking - 08.10.2011, 21:35
Re: Messages realy short =s - by Jafet_Macario - 08.10.2011, 21:42
Re: Messages realy short =s - by Stefans94 - 08.10.2011, 21:48

Forum Jump:


Users browsing this thread: 1 Guest(s)