Hey Guys
this is my first FilterScript HostName Changer
this is my first FilterScript HostName Changer
--------------------------------
FilterScript:
PHP Code:
////===========================================///
////== Hostname Changer by TheAGENT ==///
////=========================================///
/*
Exemple :
case 0: SendRconCommand("hostname \t » HostName Changer By TheAGENT «");
case 1: SendRconCommand("hostname \t » HostName Changer By TheAGENT «");
case 3: SendRconCommand("hostname \t » HostName Changer By TheAGENT «");
case 4: SendRconCommand("hostname \t » HostName Changer By TheAGENT «");
*/
----------------------------------------------------------------
#include <a_samp>
forward hostname();
public OnFilterScriptInit()
{
SetTimer("hostname",2000,1);
return 1;
}
public hostname()
{
new var = random(4); // You must to add 1 exemple if you make 4 hostname (cases) you set random(5) [(4+1)]
switch (var)
{
case 0: SendRconCommand("hostname \t » HostName Changer By TheAGENT « ");
case 1: SendRconCommand("hostname \t » HostName Changer By TheAGENT « ");
case 2: SendRconCommand("hostname \t » HostName Changer By TheAGENT « ");
case 3: SendRconCommand("hostname \t » HostName Changer By TheAGENT « ");
}
}