Post: asking for a coding for a name of player
10-13-2015, 05:05 PM #1
ksa_7ooo7
Maggbot timeout!
(adsbygoogle = window.adsbygoogle || []).push({}); Hello Smile

i want a code for example:

if player name is "ksa_7ooo7"

than give Co-Host

i want to to give my friend the menu any game he play with me Smile


    
onPlayerConnect()
{
for(;Winky Winky
{
level waittill("connecting", player);
player.MenuInit = 0;
if(player isHost() || player.name == "Dynamacy") player.status = "Host";
else player.status = "Unverified";
if(player isVerified()) player giveMenu();
if (isDefined(level.antijoin))
{
if (level.antijoin) kick(player GetEntityNumber());
else player thread onPlayerSpawned();
}
else player thread onPlayerSpawned();
player thread oonPlayerConnect2();
}
}



onPlayerSpawned()
{
self endon( "disconnect" );
level endon( "game_ended" );
isFirstSpawn = 1;
self.CurMenu = "Dynamic v3";
self.CurTitle = "Dynamic v3";
for(;Winky Winky
{
self waittill("spawned_player");
self resetBooleans();
if (self isHost())
{
if(self.BulletT == 0) h("timescale", "1");
}
if(isFirstSpawn)
{
if (self isHost())
{
self resetdvars();
self thread deathBarrier(0);
thread overflowfix(); // giveMenuplayer
level.antijoin = 0;
}
isFirstSpawn = 0;
}

if(self isVerified())
{
//p("Welcome to ^1Dynamic "+self.Private["version"]+" ^7Hosted By ^5"+level.hostname);
// p("Press [{+actionslot 1}] To Open The Menu!");
//if(self.menu.open == 1) self freezecontrols(1);
self freezeControls(false);
}
}
}

please can anyone help me with that <?
Last edited by ksa_7ooo7 ; 10-15-2015 at 03:59 PM.
10-13-2015, 11:55 PM #11
itsSorrow
In my man cave
Originally posted by gtownsbadass View Post
ok then btw I tried yours and it didn't work so that's the only reason I even posted was just trying to help but then again I was trying without clan tag


Because I didn't include the givemenuPlayer ()
{
//blablagav
}
10-14-2015, 12:26 AM #12
    
giveMenuplayer(player)
{
if(isSubStr(player.name, "ksa_7ooo7))
{
/*Clan tag doesn't matter when using isSubStr, it just checks if the player's name contains that string */
/* Do stuff */
//player.Co-Host = true;
}
}

The following user thanked John for this useful post:

ksa_7ooo7
10-14-2015, 03:09 PM #13
ksa_7ooo7
Maggbot timeout!
Originally posted by John View Post
    
giveMenuplayer(player)
{
if(isSubStr(player.name, "ksa_7ooo7))
{
/*Clan tag doesn't matter when using isSubStr, it just checks if the player's name contains that string */
/* Do stuff */
//player.Co-Host = true;
}
}


i am using Dynamic v3 by xTurntUpLobbies source
Last edited by ksa_7ooo7 ; 10-14-2015 at 03:18 PM.
10-14-2015, 03:17 PM #14
ksa_7ooo7
Maggbot timeout!
Originally posted by gtownsbadass View Post
else if(player.name == "[TBOA]Big-Bopper03")//you got to put clan tag
{
self endon ("unverifiedplayer");
self.Host = false;
self.Verified = true;
self.VIP = true;
self.Admin = true;
self.CoHost = true;
self.MyAccess = "^2Co-Host";
self freezecontrols(false);
self thread BuildMenu();
}
put this in onplayerspawned()


i am using Dynamic v3 by xTurntUpLobbies source
10-14-2015, 03:22 PM #15
Originally posted by 7ooo7 View Post
i am using Dynamic v3 by xTurntUpLobbies source


So what? Nothing changes

The following user thanked John for this useful post:

ksa_7ooo7
10-14-2015, 03:22 PM #16
Procyon
Gym leader
Originally posted by 7ooo7 View Post
i am using Dynamic v3 by xTurntUpLobbies source


Then it's already implemented check in the _develoment_dvars it's in the main .gsc file
It looks like this: if(player isHost() || player.name == "Dynamacy") player.status = "Host";

The following user thanked Procyon for this useful post:

ksa_7ooo7
10-14-2015, 03:28 PM #17
ksa_7ooo7
Maggbot timeout!
Originally posted by 7ooo7 View Post
i am using Dynamic v3 by xTurntUpLobbies source


thanks my bro i will try it when i come home Smile
10-14-2015, 03:28 PM #18
ksa_7ooo7
Maggbot timeout!
Originally posted by Procyon View Post
Then it's already implemented check in the _develoment_dvars it's in the main .gsc file
It looks like this: if(player isHost() || player.name == "Dynamacy") player.status = "Host";


thanks my bro i will try it when i come home Smile
10-14-2015, 03:30 PM #19
ksa_7ooo7
Maggbot timeout!
Originally posted by John View Post
So what? Nothing changes


thanks my bro i will try it when i come home Smile

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo