30.01.2015, 19:35
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;
}