hello again... Again one problem...
#1

So I use zcmd but now i'm thinking how to get it write becouse I'm new at zcmd so yeah...

SO I want when pleyer says text like

/think he is retarded

the text out put was:

Player name thinks he is retarded

Код:
CMD:think(playerid, params[])
{
    if(isnull(params)) return SendClientMessage(playerid, 0x8000FFC9, "/think [text]");
    new
        string[128],
        pName[20 char]
    ;
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "* thinks %s %s *", pName, params);
    return SendClientMessageToAll(0x8000FFC9, string);
}
Reply
#2

pawn Код:
CMD:think(playerid, params[])
{
    if(isnull(params)) return SendClientMessage(playerid, 0x8000FFC9, "/think [text]");
    new
        string[128],
        pName[MAX_PLAYER_NAME]
    ;
    GetPlayerName(playerid, pName,MAX_PLAYER_NAME);
    format(string, sizeof(string), "* thinks %s %s *", pName, params);
    SendClientMessageToAll(0x8000FFC9, string);
    return true;
}
Reply
#3

You see the out put text is

thinks Player name and Surname...

but I need

Player name and Surname thinks he is shit head ....
Reply
#4

pawn Код:
CMD:think(playerid, params[])
{
    if(isnull(params)) return SendClientMessage(playerid, 0x8000FFC9, "/think [text]");
    new
        string[128],
        pName[MAX_PLAYER_NAME]
    ;
    GetPlayerName(playerid, pName,MAX_PLAYER_NAME);
    format(string, sizeof(string), "* %s thinks: %s *", pName, params);
    SendClientMessageToAll(0x8000FFC9, string);
    return true;
}
Reply
#5

Thank you mate :P Have a great day
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)