Hostname question - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Hostname question (
/showthread.php?tid=434187)
Hostname question -
Blackazur - 01.05.2013
Hello, i would ask how can i change the Hostname so that nobody can edit it or change it, because i will releasing an script and i will that nobody can change the Hostname, so that my Hostname all times exist when someone use the Script like "Gamemode made by Blackazur". How can i make that with MYSQL?
AW: Hostname question -
Blackazur - 01.05.2013
But i download an gamemode and in that gamemode i cant change the hostname even if i edit this things on ongamemodeinit with sendrconcommand etc.
Re: AW: Hostname question -
Avi Raj - 01.05.2013
Quote:
Originally Posted by Blackazur
But i download an gamemode and in that gamemode i cant change the hostname even if i edit this things on ongamemodeinit with sendrconcommand etc.
|
In that u seen server.cfg?
And as ****** said, you cant.
AW: Hostname question -
Blackazur - 01.05.2013
warning 201: redefinition of constant/macro (symbol "Name")
In this script when i try to change the name it show me that, but i cant find the other thing where the hostname is defined with "Name". How will work that?
Re: Hostname question -
Pottus - 01.05.2013
Quote:
Originally Posted by ******
The ONLY reason for that is that you're not looking hard enough.
|
Makes me wonder does he stand when he pees or sits like a woman?
AW: Hostname question -
Blackazur - 01.05.2013
I swear that i looked good enough, but i cant find any other thing..
Re: AW: Hostname question -
Lordzy - 01.05.2013
Quote:
Originally Posted by Blackazur
I swear that i looked good enough, but i cant find any other thing..
|
Try
/rcon hostname [host name] inside the script. That could change. Even if you edit in server.cfg while the gamemode loads, it's changing because a function is being called while loading which changes the host name.
AW: Hostname question -
Blackazur - 01.05.2013
I tried already /rcon hostname [host name] but it didnt work cause this with Name is defined in the script but i cant find it. o.O Is that an bug?
Re: Hostname question -
DobbysGamertag - 01.05.2013
have you looked for
pawn Код:
SendRconCommand("hostname Hostnamehere");
AW: Hostname question -
Blackazur - 01.05.2013
Эes, it didnt exist.