02.01.2011, 05:08
Quote:
pawn Код:
|
here code....
pawn Код:
CMD:me(playerid, params[])
{
new
pName[MAX_PLAYER_NAME],
String[128];
if(isnull(params)) return SendClientMessage(playerid, yellow, "|| ~Usage: /me [TEXT]~ ||");
new string[128];
GetPlayerName(playerid, pName, sizeof(pName));
format(string,sizeof(string),"%s: %s",RemoveUnderScore(playerid),text);
return SendClientMessageToAll(0xFFFFFFFF, String);
}
//-
stock RemoveUnderScore(playerid){
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
for(new i = 0; i < MAX_PLAYER_NAME; i++){
if(name[i] == '_') name[i] = ' ';}
return name;}