25.01.2014, 20:55
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;
}
#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;
}