Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- new changehn = 1; //Change Host Name
- forward HostNameChangeTimer();
- public OnFilterScriptInit()
- {
- SetTimer("HostNameChangeTimer", 3000, 1); //3 Seconds
- }
- public HostNameChangeTimer()
- {
- if(changehn == 1)
- {
- changehn = 2;
- SendRconCommand("Change me");
- return 1;
- }
- else if(changehn == 2)
- {
- changehn = 3;
- SendRconCommand("Change me");
- return 1;
- }
- else if(changehn == 3)
- {
- changehn = 1;
- SendRconCommand("Change me ");
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement