
Postado originalmente por
konvict
you want everyone on the same server see the message, is it?
where did this tIndex?
and why two loops?
i want to make a connect notice when gObj->Connected ==1 so its so in the server is nick and all server will see it .. ty for help i think on that and i dont need make two loops this enough
Código PHP:
void ConnectedNotice(int aIndex,char* Message)
{
OBJECTSTRUCT *gObj = (OBJECTSTRUCT*)OBJECT_POINTER(aIndex);
char TargetNickName[70];
sscanf(Message,"%s",TargetNickName);
int connectmember = gObjGetIndex(TargetNickName);
for(int i = OBJECT_MIN;i <= OBJECT_MAX;i++)
{
for (int i = 6400; i<7400; i++)
{
if(gObj->Connected == 1)
{
Chat.OutGreenMsg(aIndex,"%s Connect to game");
if(gObj->Autority == 32)
{
Chat.OutGreenMsg(aIndex,"GM : %s Connect Right Now");
}
}
}
}