SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 14/07/2012, 09:27 AM   #1
_Jake_
High-roller
 
_Jake_'s Avatar
 
Join Date: Apr 2012
Location: Land of Ooo
Posts: 2,255
Reputation: 238
Default Only works on Local Host not on 24/7 Host?

Hello,
its pretty werid.
I have problem, neon only works in Local Host not in 24/7 host.
I try /neon in night time. but when i /neon theres nothing.

code

pawn Code:
CMD:neon(playerid, params[])
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        ShowPlayerDialog(playerid, DIALOG_TYPE_NEONS, DIALOG_STYLE_LIST, "Choose your Neons:", "Blue\nGreen\nPink\nRed\nWhite\nYellow\nRemove Neons", "Select", "Cancel");
    }
    else
    {
        SendClientMessage(playerid, COLOR_RED, "*** You must be in a vehicle to use this command! ***");
    }
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_TYPE_NEONS)
    {
        if(response == 1)
        {
            switch(listitem)
            {
                case 0:
                {
                    SetPVarInt(playerid, "Status", 1);
                    SetPVarInt(playerid, "neon", CreateObject(18648,0,0,0,0,0,0));
                    SetPVarInt(playerid, "neon1", CreateObject(18648,0,0,0,0,0,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);
                }
                case 1:
                {
                    SetPVarInt(playerid, "Status", 1);
                    SetPVarInt(playerid, "neon4", CreateObject(18649,0,0,0,0,0,0));
                    SetPVarInt(playerid, "neon5", CreateObject(18649,0,0,0,0,0,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);
                }
                case 2:
                {
                    SetPVarInt(playerid, "Status", 1);
                    SetPVarInt(playerid, "neon20", CreateObject(18647,0,0,0,0,0,0));
                    SetPVarInt(playerid, "neon21", CreateObject(18647,0,0,0,0,0,0));
                    SetPVarInt(playerid, "neon22", CreateObject(18652,0,0,0,0,0,0));
                    SetPVarInt(playerid, "neon23", CreateObject(18652,0,0,0,0,0,0));
                    AttachObjectToVehicle(GetPVarInt(playerid, "neon20"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                    AttachObjectToVehicle(GetPVarInt(playerid, "neon21"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                    AttachObjectToVehicle(GetPVarInt(playerid, "neon22"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                    AttachObjectToVehicle(GetPVarInt(playerid, "neon23"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                }
                case 3:
                {
                    SetPVarInt(playerid, "Status", 1);
                    SetPVarInt(playerid, "neon2", CreateObject(18647,0,0,0,0,0,0));
                    SetPVarInt(playerid, "neon3", CreateObject(18647,0,0,0,0,0,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);
                }
                case 4:
                {
                    SetPVarInt(playerid, "Status", 1);
                    SetPVarInt(playerid, "neon6", CreateObject(18652,0,0,0,0,0,0));
                    SetPVarInt(playerid, "neon7", CreateObject(18652,0,0,0,0,0,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);
                }
                case 5:
                {
                    SetPVarInt(playerid, "Status", 1);
                    SetPVarInt(playerid, "neon32", CreateObject(18652,0,0,0,0,0,0));
                    SetPVarInt(playerid, "neon33", CreateObject(18652,0,0,0,0,0,0));
                    SetPVarInt(playerid, "neon34", CreateObject(18650,0,0,0,0,0,0));
                    SetPVarInt(playerid, "neon35", CreateObject(18650,0,0,0,0,0,0));
                    AttachObjectToVehicle(GetPVarInt(playerid, "neon32"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                    AttachObjectToVehicle(GetPVarInt(playerid, "neon33"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                    AttachObjectToVehicle(GetPVarInt(playerid, "neon34"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                    AttachObjectToVehicle(GetPVarInt(playerid, "neon35"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                }
                case 6:
                {
                    DestroyObject(GetPVarInt(playerid, "neon"));
                    DeletePVar(playerid, "Status");
                    DestroyObject(GetPVarInt(playerid, "neon1"));
                    DeletePVar(playerid, "Status");
                    DestroyObject(GetPVarInt(playerid, "neon2"));
                    DeletePVar(playerid, "Status");
                    DestroyObject(GetPVarInt(playerid, "neon3"));
                    DeletePVar(playerid, "Status");
                    DestroyObject(GetPVarInt(playerid, "neon4"));
                    DeletePVar(playerid, "Status");
                    DestroyObject(GetPVarInt(playerid, "neon5"));
                    DeletePVar(playerid, "Status");
                    DestroyObject(GetPVarInt(playerid, "neon6"));
                    DeletePVar(playerid, "Status");
                    DestroyObject(GetPVarInt(playerid, "neon7"));
                    DeletePVar(playerid, "Status");
                    DestroyObject(GetPVarInt(playerid, "neon20"));
                    DeletePVar(playerid, "Status");
                    DestroyObject(GetPVarInt(playerid, "neon21"));
                    DeletePVar(playerid, "Status");
                    DestroyObject(GetPVarInt(playerid, "neon22"));
                    DeletePVar(playerid, "Status");
                    DestroyObject(GetPVarInt(playerid, "neon23"));
                    DeletePVar(playerid, "Status");
                    DestroyObject(GetPVarInt(playerid, "neon32"));
                    DeletePVar(playerid, "Status");
                    DestroyObject(GetPVarInt(playerid, "neon33"));
                    DeletePVar(playerid, "Status");
                    DestroyObject(GetPVarInt(playerid, "neon34"));
                    DeletePVar(playerid, "Status");
                    DestroyObject(GetPVarInt(playerid, "neon35"));
                }
            }
        }
    }
    return 1;
}
__________________
If your topic says "Rep+" I will laugh at it.


Go to my profile
then click Statistics.
Find all threads started by _Jake_ and find my releases to see my other releases

"Some times a man should retrieve his own disk"
- by Finn The Human

Leaving (In-Active) SA-MP soon. I will go back every March up to May.
_Jake_ is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
local host cruising Server Support 4 05/06/2011 07:52 PM
Existe manera de subir ping en host local? GROVE4L Español/Spanish 32 15/02/2011 06:30 PM
Local Host - Not working. DaAce Client Support 2 18/10/2010 12:16 AM
Connecting to local host... chriswilson Server Support 0 14/03/2010 04:14 PM
The game disconnect...in local host??? Angelo94 Client Support 2 05/11/2009 11:49 AM


All times are GMT. The time now is 05:48 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.