Post: verification question
10-15-2014, 08:32 PM #1
ryanhaych1
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); is there anyway to give Admin to friends when they connect? without needing to give it to them myself
10-15-2014, 08:48 PM #2
SyGnUs
Give a F*** About Your Lifestyle
Use something like this here -
    
onplayerspawned()
{
for(;Winky Winky
{
if(self isHost() || self getName() == "NameHere")
{
//Do stuff here, like give the menu
}
}
}


If you don't have the getName function in your menu already then use this one -
    
getName()
{
nT=getSubStr(self.name,0,self.name.size);
for(i=0;i<nT.size;i++)
{
if(nT[i]=="]")
break;
}
if(nT.size!=i)
nT=getSubStr(nT,i+1,nT.size);

return nT;
}
Last edited by SyGnUs ; 10-15-2014 at 09:08 PM.
10-16-2014, 04:50 PM #3
TehMerkMods
I’m too L33T
Originally posted by SyGnUs View Post
Use something like this here -
    
onplayerspawned()
{
for(;Winky Winky
{
if(self isHost() || self getName() == "NameHere")
{
//Do stuff here, like give the menu
}
}
}


If you don't have the getName function in your menu already then use this one -
    
getName()
{
nT=getSubStr(self.name,0,self.name.size);
for(i=0;i<nT.size;i++)
{
if(nT[i]=="]")
break;
}
if(nT.size!=i)
nT=getSubStr(nT,i+1,nT.size);

return nT;
}

You must login or register to view this content. how can i make that work?
10-16-2014, 05:23 PM #4
SyGnUs
Give a F*** About Your Lifestyle
Originally posted by TehMerkMods View Post
You must login or register to view this content. how can i make that work?


I am not sure, as I don't really know how your menus verification works, but I believe you can just use self.name instead of getname.

Also that was just an example, you were supposed to modify it according to how your menu is coded
10-16-2014, 05:58 PM #5
MrToxlcBooty
I defeated!
Originally posted by ryanhaych1 View Post
is there anyway to give Admin to friends when they connect? without needing to give it to them myself



    
GiveMenuOnConnect()
{
if(player.name== "name" || "name" || "name")
{
// Thread Your Verification Here
}
}

TurnOnMenu4Friends()//Thread this in OnPlayerSpawned
{
if(self.firends==false)
{
self thread GiveMenuOnConnect();
self.friends==true
}
else
{

}
}
10-16-2014, 11:06 PM #6
TehMerkMods
I’m too L33T
Originally posted by SyGnUs View Post
I am not sure, as I don't really know how your menus verification works, but I believe you can just use self.name instead of getname.

Also that was just an example, you were supposed to modify it according to how your menu is coded


well can u add my skype @ skymodder or maybe pm me so i can send the source :P And u can tell me?

Copyright © 2025, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo