Код:
//==============================================================================
CMD:me(playerid, params[])// By YOUICE
{
if(gPlayerLogged{playerid} == 0)
{
SendClientMessage(playerid, COLOR_GREY, "You're not logged in.");
return 1;
}
if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /me [action]");
new string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s %s", name, params);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return 1;
}
//==============================================================================
CMD:do(playerid, params[])// By YOUICE
{
if(gPlayerLogged{playerid} == 0)
{
SendClientMessage(playerid, COLOR_GREY, "You're not logged in.");
return 1;
}
if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /do [action]");
new string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s ((%s))", params, name);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return 1;
}
//==============================================================================
CMD:shout(playerid, params[]) {// By YOUICE
return cmd_shout(playerid, params);
}
//==============================================================================
CMD:s(playerid, params[])// By YOUICE
{
if(gPlayerLogged{playerid} == 0)
{
SendClientMessage(playerid, COLOR_GREY, "You're not logged in.");
return 1;
}
if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/s)hout [shout chat]");
new string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "(shouts) %s!", params);
SetPlayerChatBubble(playerid,string,COLOR_WHITE,60.0,5000);
format(string, sizeof(string), "%s shouts: %s!", name, params);
ProxDetector(30.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
return 1;
}
//==============================================================================
CMD:low(playerid, params[]) {// By YOUICE
return cmd_l(playerid, params);
}
//==============================================================================
CMD:l(playerid, params[])// By YOUICE
{
if(gPlayerLogged{playerid} == 0)
{
SendClientMessage(playerid, COLOR_GREY, "You're not logged in.");
return 1;
}
if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/l)ow [close chat]");
new string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s says quietly: %s", name, params);
ProxDetector(5.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
format(string, sizeof(string), "(quietly) %s", params);
SetPlayerChatBubble(playerid,string,COLOR_WHITE,5.0,5000);
return 1;
}
//==============================================================================
CMD:b(playerid, params[])// By YOUICE
{
if(gPlayerLogged{playerid} == 0)
{
SendClientMessage(playerid, COLOR_GREY, "You're not logged in.");
return 1;
}
if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /b [local ooc chat]");
new string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s: (( %s ))", name, params);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
return 1;
}
//==============================================================================