Need help to add commands to a server
#1

Hello.

How do I add the following to my server? (What folders and such do I put them into)

I already have them implemented in my server, but I need to redo it to change their colour and such.

Код:
CMD:me(playerid, params[])
{
if(isnull(params)) return SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /me [action]");
new string[128];
format(string, sizeof(string), "{FF8000}* {C2A2DA}%s %s", GetPlayerNameEx(playerid), params);
ProxDetectorWrap(playerid, string, 92, 30.0, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
return 1;
}
Код:
CMD:b(playerid, params[])
{
if(gPlayerLogged{playerid} == 0)
{
SendClientMessageEx(playerid, COLOR_GREY, "You're not logged in.");
return 1;
}
if(isnull(params)) return SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /b [local ooc chat]");
new string[128];
format(string, sizeof(string), "%s: (( %s ))", GetPlayerNameEx(playerid), params);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_F ADE4,COLOR_FADE5);
return 1;
}
Код:
format(string, sizeof(string), "[N] {5CE6E6}%s{5CE6E6}", GetPlayersName(playerid));
Reply


Messages In This Thread
Need help to add commands to a server - by KarlCassidy - 23.03.2014, 17:14
Re: Need help to add commands to a server - by stundje - 23.03.2014, 21:03
Re: Need help to add commands to a server - by MP2 - 23.03.2014, 21:08
Re: Need help to add commands to a server - by KarlCassidy - 23.03.2014, 21:15
Re: Need help to add commands to a server - by Goldenfox - 23.03.2014, 22:12
Re: Need help to add commands to a server - by MP2 - 23.03.2014, 22:44
Re: Need help to add commands to a server - by KarlCassidy - 24.03.2014, 07:47

Forum Jump:


Users browsing this thread: 1 Guest(s)