17.06.2009, 20:40
like ..
Action: /say 2 hai
gives you: 'hai' with style 2
_________________________________________________
Something like that? Or did I misunderstood you?
_________________________________________________
For this code to function properly you need:
pawn Код:
dcmd_say(playerid, params[])
{
new style, text[218];
if(sscanf(params, "ds", style, text) return SendClientMessage(playerid, COLOR_WHATEVER, "SYNTAX: /say <style> <text>");
if(style > 5 || style < 0) return SendClientMessage(playerid, COLOR_WHATEVER, "This style does not exist");
GameTextForAll(text, 3000, style);
return 1;
}
gives you: 'hai' with style 2
_________________________________________________
Something like that? Or did I misunderstood you?
_________________________________________________
For this code to function properly you need:
- sscanf
- dcmd
- GameTextForAll
- Test that code since I don't have PAWNO anymore : >