21.01.2013, 09:03
(
Последний раз редактировалось Saw®; 21.01.2013 в 11:39.
)
Hey everyone , I wanted to create a command like (/y [OOC]) it is not the (/O) but only for players to speak with others oocly.
The problem is In Game when I do like (/y hi player) it sends only : Name: ((player)) , I think the problem is here:
I took this frim my ban command so it works with /command [x] [y]
thank you.
pawn Код:
dcmd_y(playerid, params[])
{
if(Mute[playerid] == 1) return SendClientMessage(playerid,COLOR_CERVENA,"Vous кtes mutй.");
if(IsLogged[playerid] == true)
{
new pos;
new string[150];
if(!params[0]||!(pos=chrfind(' ',params))||!params[pos]) return SendClientMessage(playerid, COLOR_GREY, "Usage: /y [Texte OOC]");
format(string, sizeof(string), "%s [%d]:((%s))", PlayerName(playerid),playerid,params[pos]);
ProxDetector(playerid, 20.0, string, COLOR_WHITE, COLOR_WHITE, COLOR_WHITE, COLOR_WHITE, COLOR_WHITE);
}
return 1;
}
pawn Код:
if(!params[0]||!(pos=chrfind(' ',params))||!params[pos]) return SendClientMessage(playerid, COLOR_GREY, "Usage: /y [Texte OOC]");
thank you.