PDA

View Full Version : Gamemodes Changer


otto131
01/04/2010, 11:50 AM
Salut , imi puteti aranja ca in timp din 4 in 4 secunde sa se schimbe numele la Hostname ?
// Gamemodes Changer v0.1.0 - by Amit `Amit_B` Barami
#include "a_samp.inc"
#define changeType 1 // 1 = Random, 2 = By the array arrangement
#define changeTime 5 // Change gamemode minutes
#if (changeType < 1 && changeType > 2) || changeTime < 1 || !defined changeType || !defined changeTime
#endinput
#endif
new gamemodes[][32] = // List of gamemodes (file names, without ".amx")
{
"lvdm",
"area51",
"barron",
"sftdm",
"minigunmadness",
"eRP"
}
#if changeType == 2
, arr = 0
#endif
;
public OnFilterScriptInit()
{
print("RPG Gamecore.ro Roleplay");
SetTimer("eRP",60000*changeTime,1);
}
public OnFilterScriptExit() print(" Real Life Romania [ www..ro]");
forward changeGamemode();
public changeGamemode()
{
new gmid = 0, cmd[32];
#if changeType == 1
gmid = random(sizeof(gamemodes));
#elseif changeType == 2
gmid = arr, arr = arr + 1 >= sizeof(gamemodes) ? 0 : arr + 1;
#endif
format(cmd,sizeof(cmd),"changemode %s",gamemodes[gmid]);
return SendRconCommand(cmd);
}

Numele la gamemodes este eRP , am incercat eu ceva , dar nu am reusit , daca ati putea sa`mi aranjati voi , sa`mi dati direct rezolvarea .

[NoV]LaZ
01/04/2010, 12:28 PM
Acel cod schimba gamemode-ul, nu numele serverului.
________
Body Science (http://bodyscience.ws/)

mihaibr
01/04/2010, 01:44 PM
oups greseala mea :(

poate sa faca copii la gamemode dar cu alt nume :)

Zh3r0
01/04/2010, 02:23 PM
oups greseala mea :(

poate sa faca copii la gamemode dar cu alt nume :)

Ar fi cea mai mare prostie?

EastSiders
01/04/2010, 02:24 PM
Copie la gm poti face tu si numele poti sa dai rename ...:)

mihaibr
01/04/2010, 04:33 PM
Ar fi cea mai mare prostie

fane tu playon un script care sa schimbe numele la gamemod :|

Zh3r0
01/04/2010, 05:02 PM
Ar fi cea mai mare prostie

fane tu playon un script care sa schimbe numele la gamemod :|

Nu am timp , dar te ajuta asta :)

http://forum.sa-mp.com/index.php?topic=141853.0

mihaibr
02/04/2010, 09:24 AM
ms :D