Help in roleplay commands (Will get +rep)
#1

My problem is fixed now...thanks for your help!
Reply
#2

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!
Reply
#3

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

My problem is fixed now...thanks for your help!
Reply
#5

Fixed...sorry
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)