Posts: 229
Threads: 37
Joined: Jan 2010
Reputation:
0
I am pretty new at pawn and I cant really figure out how to make a /me command using dcmd.
Example: /me is happy = ee100 is happy
Just so u know what it is. But I bet everyone know what /me is.
- ee100
Posts: 669
Threads: 7
Joined: Nov 2007
Reputation:
0
dcmd_me(playerid,params[])
{
new string[128];
if(!strlen(params)) return SendClientMessage(playerid,0xF60000AA, "/me <action>.");
format(string, sizeof(string), "* %s (%d) %s", pNick(playerid), playerid, params);
SendClientMessageToAll(0x00FFFFFF, string);
return 1;
}
stock pNick(playerid)
{
new nick[MAX_PLAYER_NAME];
GetPlayerName(playerid, nick, MAX_PLAYER_NAME);
return nick;
}
Posts: 669
Threads: 7
Joined: Nov 2007
Reputation:
0
would be best if you searched first tbh
Posts: 229
Threads: 37
Joined: Jan 2010
Reputation:
0
Could u tell me how to remove that id thing.. i only want the name, not name and id.