14.02.2011, 20:55
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
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?
Код:
if (strcmp(cmdtext, "/installneon", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { if(PlayerInfo[playerid][pJob] == 7) { if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, 0x40FF00FF, "You dont have enough Money for neons"); GivePlayerMoney(playerid, -5000); DisplayDialogForPlayer(playerid, 61); } else { SendClientMessage(playerid, COLOR_GREY, " You are not a Mechanic !"); } } else { SendClientMessage(playerid, COLOR_GREY, " You are not in vehicle !"); } return 1; }
Код:
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"); } } }
Код:
ShowPlayerDialog(playerid, 8899, DIALOG_STYLE_LIST, "Pick Neon Color", "Blue\nRed\nGreen\nWhite\nPink\nYellow\nRemove", "Select", "Cancel");