17.11.2013, 15:32
pawn Код:
CMD:me(playerid, params[])
{
if(isnull(params)) return SendClientMessage(playerid, COLOR_NEWBIE, "SYNTAX: /me [action]");
new textv2[128];
format(textv2, 128, "* %s %s", RPname(playerid), params);
NearMessageSender(playerid, 6.0, textv2, COLOR_FADE1,COLOR_FADE1,COLOR_FADE1,COLOR_FADE1,COLOR_FADE1);
return 1;
}
CMD:do(playerid, params[])
{
if(isnull(params)) return SendClientMessage(playerid, COLOR_NEWBIE, "SYNTAX: /do [action]");
new textv2[128];
format(textv2, 128, "* %s (( %s ))", params, RPname(playerid));
NearMessageSender(playerid, 6.0, textv2, COLOR_FADE1,COLOR_FADE1,COLOR_FADE1,COLOR_FADE1,COLOR_FADE1);
return 1;
}
stock RPname(playerid)
{
new Name[MAX_PLAYER_NAME], i = -1;
GetPlayerName( playerid, Name, MAX_PLAYER_NAME );
while( Name[ ++i ] )
if(Name[i] == '_')
Name[i] = ' ';
return Name;
}