SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 14/05/2014, 01:36 PM   #1
HitterHitman
Banned
 
Join Date: Sep 2013
Location: San fierro
Posts: 270
Reputation: 25
Default Kitten's Zombie Mod 8 help!

Hello guys can anyone tell me how can I stop the hostname from being changed? because I haven't found any code changing its hostname also please tell me about the "What's the update server?" I have no idea about it.
HitterHitman is offline   Reply With Quote
Old 14/05/2014, 01:49 PM   #2
ball
Huge Clucker
 
ball's Avatar
 
Join Date: Jul 2012
Location: Poznan, Poland
Posts: 279
Reputation: 33
Default Re: Kitten's Zombie Mod 8 help!

The server hostname can be changed by rcon command "hostname [string]" - also can be changed by online console in some hostings.
ball is offline   Reply With Quote
Old 14/05/2014, 02:07 PM   #3
HitterHitman
Banned
 
Join Date: Sep 2013
Location: San fierro
Posts: 270
Reputation: 25
Default Re: Kitten's Zombie Mod 8 help!

I know this but there is no rcon command in script for changing the hostname and still it changed anyhelp to stop it?
HitterHitman is offline   Reply With Quote
Old 14/05/2014, 02:19 PM   #4
NaClchemistryK
Huge Clucker
 
NaClchemistryK's Avatar
 
Join Date: Jun 2013
Posts: 259
Reputation: 6
Default Re: Kitten's Zombie Mod 8 help!

Some people here don't know what the code of the gamemode is. So we can't tell. As the user ball said, you can use rcon command for that. The rcon commands are built into samp servers. If you don't know how to use rcon, then this is how:
Go on your server.
type /rcon login [rcon password] <-- to log into rcon. Always works.
then use /rcon hostname [name] <-- to change the hostname.
And also, you don't need a rcon command in your script, as I said it is built into samp servers.
NaClchemistryK is offline   Reply With Quote
Old 14/05/2014, 02:31 PM   #5
Beckett
High-roller
 
Beckett's Avatar
 
Join Date: Feb 2012
Location: www.finalnights-rp.com
Posts: 1,794
Reputation: 104
Default Re: Kitten's Zombie Mod 8 help!

pawn Code:
public ChangeTimer()
{
    SendRconCommand("hostname **THE HOST NAME U WANT HERE**");
}

public OnGameModeInit()
{
    SetTimer("ChangeTimer",1000,1);
    return 1;
}
Since I don't know your code you can just set up a timer that will change the server hostname each 1 second to the one you want incase the host name changes to the other after one second it will change to your own.

I hope this helps.
__________________
Final Nights Roleplay
The first SA-MP server that is not regulated by administrators.
No OOC hierarchy. Strictly directed by players. Utopian vision.

El primer servidor SA-MP que no está regulado por los administradores.
Sin jerarquías OOC. Estrictamente dirigido por jugadores. Visión utópica.

Primul server de SA-MP care nu este regulat de administratori.
Fără ierarhie OOC. Strict dictat de jucători. Visiune utopică.

Yöneticiler tarafından düzenlenmeyen ilk SA-MP sunucusu.
OOC hiyerarşisi yok. Kesinlikle oyuncular tarafından yönetiliyor. Ütopik görme.


Become a Member of our Discord Channel
Beckett is offline   Reply With Quote
Old 14/05/2014, 02:34 PM   #6
NaClchemistryK
Huge Clucker
 
NaClchemistryK's Avatar
 
Join Date: Jun 2013
Posts: 259
Reputation: 6
Default Re: Kitten's Zombie Mod 8 help!

You forgot to forward the timer.
pawn Code:
forward ChangeTimer();
public ChangeTimer()
{
    SendRconCommand("hostname **THE HOST NAME U WANT HERE**");
}
Anyway, good suggestion
NaClchemistryK is offline   Reply With Quote
Old 14/05/2014, 02:38 PM   #7
Beckett
High-roller
 
Beckett's Avatar
 
Join Date: Feb 2012
Location: www.finalnights-rp.com
Posts: 1,794
Reputation: 104
Default Re: Kitten's Zombie Mod 8 help!

Quote:
Originally Posted by NaClchemistryK View Post
You forgot to forward the timer.
pawn Code:
forward ChangeTimer();
public ChangeTimer()
{
    SendRconCommand("hostname **THE HOST NAME U WANT HERE**");
}
Anyway, good suggestion
Yes my bad, sorry.
__________________
Final Nights Roleplay
The first SA-MP server that is not regulated by administrators.
No OOC hierarchy. Strictly directed by players. Utopian vision.

El primer servidor SA-MP que no está regulado por los administradores.
Sin jerarquías OOC. Estrictamente dirigido por jugadores. Visión utópica.

Primul server de SA-MP care nu este regulat de administratori.
Fără ierarhie OOC. Strict dictat de jucători. Visiune utopică.

Yöneticiler tarafından düzenlenmeyen ilk SA-MP sunucusu.
OOC hiyerarşisi yok. Kesinlikle oyuncular tarafından yönetiliyor. Ütopik görme.


Become a Member of our Discord Channel
Beckett is offline   Reply With Quote
Old 14/05/2014, 02:49 PM   #8
Vince
Spam Machine
 
Vince's Avatar
 
Join Date: Sep 2007
Location: Belgium
Posts: 10,067
Reputation: 2660
Default Re: Kitten's Zombie Mod 8 help!

Did any of you actually read the first post? He wants to STOP the hostname from changing; in which case said SendRconCommand lines need to be removed.
__________________
Vince is offline   Reply With Quote
Old 14/05/2014, 04:23 PM   #9
Beckett
High-roller
 
Beckett's Avatar
 
Join Date: Feb 2012
Location: www.finalnights-rp.com
Posts: 1,794
Reputation: 104
Default Re: Kitten's Zombie Mod 8 help!

Quote:
Originally Posted by Vince View Post
Did any of you actually read the first post? He wants to STOP the hostname from changing; in which case said SendRconCommand lines need to be removed.
Did you even read his post? he said that he has no such SendRconCommand in his gamemode.

Quote:
Originally Posted by HitterHitman
because I haven't found any code changing its hostname
__________________
Final Nights Roleplay
The first SA-MP server that is not regulated by administrators.
No OOC hierarchy. Strictly directed by players. Utopian vision.

El primer servidor SA-MP que no está regulado por los administradores.
Sin jerarquías OOC. Estrictamente dirigido por jugadores. Visión utópica.

Primul server de SA-MP care nu este regulat de administratori.
Fără ierarhie OOC. Strict dictat de jucători. Visiune utopică.

Yöneticiler tarafından düzenlenmeyen ilk SA-MP sunucusu.
OOC hiyerarşisi yok. Kesinlikle oyuncular tarafından yönetiliyor. Ütopik görme.


Become a Member of our Discord Channel
Beckett is offline   Reply With Quote
Old 29/05/2014, 03:19 AM   #10
Imissziu
Little Clucker
 
Join Date: Jan 2014
Posts: 44
Reputation: 7
Default Re: Kitten's Zombie Mod 8 help!

help ...........................
Imissziu is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kitten zombie mod help. rocker3410 Server Support 9 07/12/2013 03:07 AM
Warning 219 Errors (Zombie Apocalypse Kitten) Michael_Cruise Scripting Help 2 24/05/2013 05:47 PM
[GameMode] • ZOMBIE APOCALYPSE • (Kitten) improved pinpon Gamemode Scripts 23 24/05/2013 08:15 AM


All times are GMT. The time now is 04:36 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.