SA-MP Forums Archive
Help in roleplay commands (Will get +rep) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help in roleplay commands (Will get +rep) (/showthread.php?tid=476660)



Help in roleplay commands (Will get +rep) - xxRichixx - 19.11.2013

My problem is fixed now...thanks for your help!


Re: Help in roleplay commands (Will get +rep) - BarFix - 19.11.2013

ZCMD:
Quote:

CMD:me(playerid, params[])
{
if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /me [action]");
new string[128];
format(string, sizeof(string), "* %s %s", GetPlayerNameEx(playerid), params);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
return 1;
}

Quote:

CMD:do(playerid, params[])
{

if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /do [action]");
else if(strlen(params) >= 100) return SendClientMessage(playerid, COLOR_GREY, "The specified message must not be longer than 99 characters in length.");
new string[128];
format(string, sizeof(string), "* %s (( %s ))", params, GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
return 1;
}

Quote:

CMD:b(playerid, params[])
{
if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /b [local ooc chat]");
new string[128];
format(string, sizeof(string), "%s says: (( %s ))", GetPlayerNameEx(playerid), params);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_F ADE4,COLOR_FADE5);
return 1;
}

Enjoy!


Re: Help in roleplay commands (Will get +rep) - Krakuski - 19.11.2013

Use this thread: https://sampforum.blast.hk/showthread.php?tid=332167


Re: Help in roleplay commands (Will get +rep) - xxRichixx - 20.11.2013

My problem is fixed now...thanks for your help!


Re: Help in roleplay commands (Will get +rep) - xxRichixx - 20.11.2013

Fixed...sorry