/*====================================================================================*
______ _ |
(_____ \ | | |
_____) )_____ ____ __| | ___ ____ |
| __ /(____ | _ \ / _ |/ _ \| \ | Just beacause, we don't know how to do : |
| | \ \/ ___ | | | ( (_| | |_| | | | | | ======================================= |
|_| |_\_____|_| |_|\____|\___/|_|_|_| | a random (Mapname ; Hostname ; Gamemodes) |
|
--------------------------------------------------------------------------------------|
-> TUTORIALS by thegreathom <- |
*=====================================================================================*/
// Credits to our so smexy samp team for this includes.
#include <a_samp>
public OnFilterScriptInit()
{
SetTimer("RandomsSET",10000, true); // Each (10000ms) = 10seconds (map,hostname,gamemode) change.
return 1;
}
forward RandomsSET();
public RandomsSET()
{
switch (random(2)) // (2) = The numbers of randoms hostname I have you can change it :
// Add : case 2: SendRconCommand("hostname MYTEXT");
{
//==================================================[Hostname]
// Don't remove "hostname" just change "MY TEXT to your"
case 0: SendRconCommand("hostname MYTEXT");
case 1: SendRconCommand("hostname MYTEXT");
}
//==================================================[Mapname]
switch (random(3)) // (3) = The numbers of randoms hostname I have you can change it :
// Add : case 4: SendRconCommand("mapname MYTEXT");
{
// Don't remove "mapname" just change "MY TEXT to your"
case 0: SendRconCommand("mapname MYTEXT");
case 1: SendRconCommand("mapname MYTEXT");
case 2: SendRconCommand("mapname MYTEXT");
}
//==================================================[Gamemodetext]
switch (random(2)) // (2) = The numbers of randoms hostname I have you can change it :
// Add : case 3: SendRconCommand("mapname MYTEXT");
{
// Don't remove "gamemodetext" just change "MY TEXT to your"
case 0: SendRconCommand("gamemodetext MYTEXT");
case 1: SendRconCommand("gamemodetext MYTEXT");
}
#include <a_samp>
public OnFilterScriptInit()
{
SetTimer("RandomsSET",1000, true);
return 1;
}
forward RandomsSET();
public RandomsSET()
{
switch (random(2))
{
case 0: SendRconCommand("hostname My servers is so great");
case 1: SendRconCommand("hostname Thegreathom the nice & smexy");
}
switch (random(3))
{
case 0: SendRconCommand("mapname THEGREATSAM");
case 1: SendRconCommand("mapname SONICE");
case 2: SendRconCommand("mapname SOSEXY");
}
switch (random(2))
{
case 0: SendRconCommand("gamemodetext THEGREATHOM");
case 1: SendRconCommand("gamemodetext IS SO SMEXY");
}
return 1;
}
Edited
Originally Posted by HUYA
Сice!
|
#BUMP - Please I need your feedback about my first tutorials..