/emotion.
#6

Here. EDIT: took it out the Godfather.
Quote:

//----------------------------------[Emote]-----------------------------------------------
if(strcmp(cmd, "/me", true) == 0)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /me [action]");
return 1;
}
format(string, sizeof(string), "* %s %s", sendername, result);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
printf("%s", string);
}
return 1;
}

Reply


Messages In This Thread
/emotion. - by davelord - 17.04.2011, 10:18
Re: /emotion. - by Vince - 17.04.2011, 10:24
Re: /emotion. - by Stigg - 17.04.2011, 10:25
Re: /emotion. - by davelord - 17.04.2011, 10:37
Re: /emotion. - by iJumbo - 17.04.2011, 10:38
Re: /emotion. - by davelord - 17.04.2011, 10:39
Re: /emotion. - by iJumbo - 17.04.2011, 10:46
Re: /emotion. - by davelord - 17.04.2011, 10:47
Re: /emotion. - by iJumbo - 17.04.2011, 10:51
Re: /emotion. - by davelord - 17.04.2011, 11:05

Forum Jump:


Users browsing this thread: 2 Guest(s)