[INFO]Convert Command
#2

use zcmd+sscanf

CMD:me(playerid,params[])
{
new text[128];
if(sscanf(params,"s",text)) return SendClientMessage(playerid,-1,"usage /me text");
{
new name[24], s[128];
GetPlayerName(playerid, name, sizeof name);
format(s, sizeof s, "%s say %s",name, text);
SendClientMessageToAll(-1,s);
}
return 1;
}
Reply


Messages In This Thread
[INFO]Convert Command - by TheBluec0de - 13.08.2011, 08:51
Re: [INFO]Convert Command - by Tigerkiller - 13.08.2011, 09:02
Re: [INFO]Convert Command - by Raimis_R - 13.08.2011, 09:03
Re: [INFO]Convert Command - by TheBluec0de - 13.08.2011, 09:04

Forum Jump:


Users browsing this thread: 2 Guest(s)