/me and /do commands PLEASE!
#8

THis is the code

#define COLOR_PURPLE 0xC2A2DAFF
CMD:me(playerid, params[])
{
new string[128];
new name[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1, "You must be logged in!");
if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /me [action]");
format(string, sizeof(string), "* %s %s", name, params);
Nearby(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
return 1;
}

CMD:do(playerid, params[])
{
new string[128];
new name[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1, "You must be logged in!");
if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /do [action]");
format(string, sizeof(string), "* %s (( %s ))", params, name);
Nearby(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
return 1;
}
Reply


Messages In This Thread
/me and /do commands PLEASE! - by Le3aT - 25.01.2014, 19:44
Re: /me and /do commands PLEASE! - by Blademaster680 - 25.01.2014, 19:48
Re: /me and /do commands PLEASE! - by Wizz123 - 25.01.2014, 19:59
Re: /me and /do commands PLEASE! - by Le3aT - 25.01.2014, 20:26
Re: /me and /do commands PLEASE! - by alishvasis - 25.01.2014, 20:28
Re: /me and /do commands PLEASE! - by Le3aT - 25.01.2014, 20:38
Re: /me and /do commands PLEASE! - by Le3aT - 25.01.2014, 20:45
Re: /me and /do commands PLEASE! - by Le3aT - 25.01.2014, 20:55
Re: /me and /do commands PLEASE! - by Dignity - 25.01.2014, 21:27
Re: /me and /do commands PLEASE! - by Wizz123 - 25.01.2014, 21:59

Forum Jump:


Users browsing this thread: 2 Guest(s)