Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////===========================================///
- ////==Hostname Changer by Second / Geerdinho8==///
- ////===========================================///
- #include <a_samp>
- forward hostname();
- public OnFilterScriptInit()
- {
- SetTimer("hostname",3000,1);//<<< You can change the ammount of time the hostname stays till it changes(1000 = 1 second)
- return 1;
- }
- public hostname()
- {
- new var = random(5); //If you want less or more messages you can change the random(5); for example to random(8); if you have 8 different messages but dont forget to edit the cases too!! switch (var)
- switch (var)
- {
- case 0: SendRconCommand("hostname Come and take a look in my server!");
- case 1: SendRconCommand("hostname Everybody is welcome!");
- case 2: SendRconCommand("hostname www.sa-mp.com");
- case 3: SendRconCommand("hostname Don't be afraid to join.");
- case 4: SendRconCommand("hostname Hostname changer by Second");
- }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement