Problem with my /o Command
#3

Add this to your stocks:
pawn Код:
stock GetPlayersName(playerid)
{
    new playersName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playersName, MAX_PLAYER_NAME);
    for(new i = 0; i < strlen(playersName); i++)
    {
        if(playersName[i] == '_') playersName[i] = ' ';
    }
    return playersName;
}
And this is the cmd:
pawn Код:
CMD:o(playerid, params[])
{
    if(isnull(params)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /o [TEXT]");

    new string[126];
    format(string, sizeof(string), "(( %s: %s ))", GetPlayersName(playerid), params);
    SendClientMessageToAll(COLOR_WHITE, string);
    return 1;
}
Reply


Messages In This Thread
Problem with my /o Command - by CrazyManiac - 10.08.2012, 14:06
Re: Problem with my /o Command - by [MM]RoXoR[FS] - 10.08.2012, 14:19
Re: Problem with my /o Command - by kaiks - 10.08.2012, 14:24
Re: Problem with my /o Command - by CrazyManiac - 10.08.2012, 14:30
Re: Problem with my /o Command - by dannyk0ed - 10.08.2012, 14:38
Re: Problem with my /o Command - by CrazyManiac - 10.08.2012, 14:41

Forum Jump:


Users browsing this thread: 1 Guest(s)