Hello i scripted my own neon system but for some reason they wont show I'm useing a object streamer for the object it works fine on my test server but on my main server nothing shows why is this? heres my script
Код:
if(dialogid == 8899)
{
if(response)
{
if(listitem == 0)
{
//blue
SetPVarInt(playerid, "neon", CreateDynamicObject(18648,0,0,0,0,0,0,-1,-1,-1,200.0));
SetPVarInt(playerid, "neon1", CreateDynamicObject(18648,0,0,0,0,0,0,-1,-1,-1,200.0));
AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
}
if(listitem == 1)
{
//red
SetPVarInt(playerid, "neon2", CreateDynamicObject(18647,0,0,0,0,0,0,-1,-1,-1,200.0));
SetPVarInt(playerid, "neon3", CreateDynamicObject(18647,0,0,0,0,0,0,-1,-1,-1,200.0));
AttachObjectToVehicle(GetPVarInt(playerid, "neon2"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon3"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, 0xFFFFFFAA, "neon installed");
}
if(listitem == 2)
{
//green
SetPVarInt(playerid, "neon4", CreateDynamicObject(18649,0,0,0,0,0,0,-1,-1,-1,200.0));
SetPVarInt(playerid, "neon5", CreateDynamicObject(18649,0,0,0,0,0,0,-1,-1,-1,200.0));
AttachObjectToVehicle(GetPVarInt(playerid, "neon4"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon5"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, 0xFFFFFFAA, "neon installed");
}
if(listitem == 3)
{
//white
SetPVarInt(playerid, "neon6", CreateDynamicObject(18652,0,0,0,0,0,0,-1,-1,-1,200.0));
SetPVarInt(playerid, "neon7", CreateDynamicObject(18652,0,0,0,0,0,0,-1,-1,-1,200.0));
AttachObjectToVehicle(GetPVarInt(playerid, "neon6"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon7"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, 0xFFFFFFAA, "neon installed");
}
if(listitem == 4)
{
//pink
SetPVarInt(playerid, "neon8", CreateDynamicObject(18651,0,0,0,0,0,0,-1,-1,-1,200.0));
SetPVarInt(playerid, "neon9", CreateDynamicObject(18651,0,0,0,0,0,0,-1,-1,-1,200.0));
AttachObjectToVehicle(GetPVarInt(playerid, "neon8"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon9"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, 0xFFFFFFAA, "neon installed");
}
if(listitem == 5)
{
//yellow
// SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon10", CreateDynamicObject(18650,0,0,0,0,0,0,-1,-1,-1,200.0));
SetPVarInt(playerid, "neon11", CreateDynamicObject(18650,0,0,0,0,0,0,-1,-1,-1,200.0));
AttachObjectToVehicle(GetPVarInt(playerid, "neon10"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon11"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, 0xFFFFFFAA, "neon installed");
}
if(listitem == 6)
{
//remove neon
DestroyDynamicObject(GetPVarInt(playerid, "neon"));
DeletePVar(playerid, "Status");
DestroyDynamicObject(GetPVarInt(playerid, "neon1"));
DeletePVar(playerid, "Status");
DestroyDynamicObject(GetPVarInt(playerid, "neon2"));
DeletePVar(playerid, "Status");
DestroyDynamicObject(GetPVarInt(playerid, "neon3"));
DeletePVar(playerid, "Status");
DestroyDynamicObject(GetPVarInt(playerid, "neon4"));
DeletePVar(playerid, "Status");
DestroyDynamicObject(GetPVarInt(playerid, "neon5"));
DeletePVar(playerid, "Status");
DestroyDynamicObject(GetPVarInt(playerid, "neon6"));
DeletePVar(playerid, "Status");
DestroyDynamicObject(GetPVarInt(playerid, "neon7"));
DeletePVar(playerid, "Status");
DestroyDynamicObject(GetPVarInt(playerid, "neon8"));
DeletePVar(playerid, "Status");
DestroyDynamicObject(GetPVarInt(playerid, "neon9"));
DeletePVar(playerid, "Status");
}
}
}
like i said they work fine in the test server i have running though my router to test my scripts but when i put it on the main server (With the streamer plugin and everything working, but the neons wont show) the neons wont show...what am i doing wrong?
Is your main server using a cmdsystem like ycmd or zcmd? This could block your strcmp command if you paste it behind the cmdsystem stuff.
Yes im useing 0.3c and the command works it shows me the dialog and everything just fine but when i select a neon it wont show.
Do other new 0.3c objects work on the server? If not, are at least some of the new objects working, or none at all?
All except the neons so far...sometimes the neons will work some times they wont :/