20.05.2012, 14:07
Well i've made up tons of 3d texts but It isnt visible anymore. I've restarted my server and they just dissapeared. Help.
It's placed under OnGameModeInit
And here is my whole OnGameModeInit
It's placed under OnGameModeInit
PHP код:
Create3DTextLabel("Welcome to Freeroam",0xFF0000AA,1172.28, -2036.83, 69.00,30.0,1);
Create3DTextLabel("Check out our website! www.freeroam.nosite",0xFF66FFFF,1175.07, -2033.28, 69.00,30.0,1);
Create3DTextLabel("Type /help to see all commands!",0x66CC00FF,1178.40, -2036.65, 69.00,30.0,1);
Create3DTextLabel("Unfair gameplay? Someone hacking? /report and we will assist you!",0x66CC00FF,1174.58, -2040.29, 69.00,30.0,1);
Create3DTextLabel("You can always check server information by typping /info!",0x3A47DEFF,1163.49, -2033.03, 69.00,30.0,1);
Create3DTextLabel("This server was hosted by Server FFS",0xFF66FFFF,1163.42, -2040.77, 69.00,30.0,1);
Create3DTextLabel("Want to help out? Join our Admin team! Apply on our forums!",0xFF9900AA,1154.71, -2041.19, 69.00,30.0,1);
Create3DTextLabel("Need assistance? Just do /report and we will come really soon!",0xFF9900AA,1154.36, -2033.49, 69.00,30.0,1);
Create3DTextLabel("Be our DJ! Make your own station and let everyone hear it in game! /radio!",0x66CC00FF,1143.64, -2033.06, 69.00,30.0,1);
Create3DTextLabel("Want to donate? Check our forums and receive different packages! Only today!",0x3A47DEFF,1140.34, -2042.22, 69.00,30.0,1);
PHP код:
public OnGameModeInit()
{
//3d texts
Create3DTextLabel("Welcome to Freeroam",0xFF0000AA,1172.28, -2036.83, 69.00,30.0,1);
Create3DTextLabel("Check out our website! www.freeroam.nosite",0xFF66FFFF,1175.07, -2033.28, 69.00,30.0,1);
Create3DTextLabel("Type /help to see all commands!",0x66CC00FF,1178.40, -2036.65, 69.00,30.0,1);
Create3DTextLabel("Unfair gameplay? Someone hacking? /report and we will assist you!",0x66CC00FF,1174.58, -2040.29, 69.00,30.0,1);
Create3DTextLabel("You can always check server information by typping /info!",0x3A47DEFF,1163.49, -2033.03, 69.00,30.0,1);
Create3DTextLabel("This server was hosted by Server FFS",0xFF66FFFF,1163.42, -2040.77, 69.00,30.0,1);
Create3DTextLabel("Want to help out? Join our Admin team! Apply on our forums!",0xFF9900AA,1154.71, -2041.19, 69.00,30.0,1);
Create3DTextLabel("Need assistance? Just do /report and we will come really soon!",0xFF9900AA,1154.36, -2033.49, 69.00,30.0,1);
Create3DTextLabel("Be our DJ! Make your own station and let everyone hear it in game! /radio!",0x66CC00FF,1143.64, -2033.06, 69.00,30.0,1);
Create3DTextLabel("Want to donate? Check our forums and receive different packages! Only today!",0x3A47DEFF,1140.34, -2042.22, 69.00,30.0,1);
SetTimer("Speedometer", 100, true);
SetTimer("RandomMessage",3000,1);
ShadowsRandom = TextDrawCreate(18.000000,428.000000,"Un registered? Type /register and get many features!");
TextDrawAlignment(ShadowsRandom,0);
TextDrawBackgroundColor(ShadowsRandom,0x000000ff);
TextDrawFont(ShadowsRandom,2);
TextDrawLetterSize(ShadowsRandom,0.199999,0.899999);
TextDrawColor(ShadowsRandom,0xffffffff);
TextDrawSetOutline(ShadowsRandom,1);
TextDrawSetProportional(ShadowsRandom,1);
TextDrawSetShadow(ShadowsRandom,1);
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
//all skins
for(new i = 0; i < 299; i++)
{
if(IsValidSkin(i))
{
AddPlayerClass(i,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
}
}
return 1;
}