17.09.2015, 23:44
(
Last edited by zPawnu; 17/09/2015 at 11:46 PM.
Reason: Editing:
)
eu queria fazer essa mensagem mostrar para todos eu tentei com SendClientMessageToAll mas nгo consegui alguйm pode me ajudar ?
( format(string, sizeof(string), "the player %s create group name : %s(ID:%d)", grpname, slotid); )
e deixar isso em dialog ??
( format(string, sizeof(string), "the player %s create group name : %s(ID:%d)", grpname, slotid); )
PHP Code:
stock CreateGroup(grpname[], owner)
{
new slotid = FindNextSlot();
groupinfo[slotid][leader] = owner;
format(groupinfo[slotid][grname], 75, "%s", grpname);
groupinfo[slotid][active] = 1;
group[owner][gid] = slotid;
group[owner][order] = 1;
new string[120];
format(string, sizeof(string), "the player %s create group name : %s(ID:%d)", grpname, slotid);
SendClientMessage(owner, 0xFFCC66, string);
return slotid;
}
PHP Code:
COMMAND:grouplist(playerid, params[])
{
if(isnull(params) && group[playerid][gid] == -1) return SendClientMessage(playerid, 0xFF0000, "Usage: {FFFFFF}/grouplist{FF0000} (group)");
if(isnull(params))
{
DisplayGroupMembers(group[playerid][gid], playerid);
return 1;
}
new grid = strval(params);
if(!groupinfo[grid][active]) return SendClientMessage(playerid, 0xFF0000, "The group ID you have entered is not active!");
DisplayGroupMembers(grid, playerid);
return 1;
}