Simple Scripting
#8

Use sscanf2

pawn Код:
CMD:dpm(playerid, params[])
{
    new
        text[128];

    if(sscanf(params, "s", text))
        return SendClientMessage(playerid, 0xFFFFFFFF, "/dpm [Message]" );
       
    new
        Text1[128],
        name[MAX_PLAYER_NAME];

    GetPlayerName(playerid, name, sizeof(name));
    format(Text1, sizeof(Text1), "%s says: %s", name, text);
    SendClientMessageToAll( COLOR_SAY, Text1);
    return 1;
}
Reply


Messages In This Thread
Simple Scripting - by Shank - 30.01.2015, 18:31
Re: Simple Scripting - by Schneider - 30.01.2015, 18:39
Re: Simple Scripting - by CalvinC - 30.01.2015, 18:40
Re: Simple Scripting - by Shank - 30.01.2015, 18:44
Re: Simple Scripting - by CalvinC - 30.01.2015, 18:49
Re: Simple Scripting - by Shank - 30.01.2015, 19:17
Re: Simple Scripting - by CalvinC - 30.01.2015, 19:25
Re: Simple Scripting - by FunnyBear - 30.01.2015, 19:35

Forum Jump:


Users browsing this thread: 1 Guest(s)