SA-MP Forums Archive
Help with /neon! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with /neon! (/showthread.php?tid=307109)



Help with /neon! - $$Money$$ - 29.12.2011

I get a job mechanic..then i typed /neon.
But there is no neon this is the pawn command
pawn Code:
if(strcmp(cmd, "/neon", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pJob] != 7) { return SendClientMessage(playerid, COLOR_GREY, "   You are not a Mechanic !"); }
            if(!IsPlayerInAnyVehicle(playerid)) { return SendClientMessage(playerid, COLOR_GREY, "   You are not in a vehicle !"); }
            if(PlayerInfo[playerid][pCash] < 2000) { return SendClientMessage(playerid, COLOR_GREY, "   You cant afford the neon !"); }
            new vehicleid = GetPlayerVehicleID(playerid);
            if(IsInvalidNeonVehicle(vehicleid))
            {
                return SendClientMessage(playerid, COLOR_GREY, "   You cant mod this vehicle !");
            }
            DisplayDialogForPlayer(playerid, 101);
        }
    }



Re: Help with /neon! - Ironboy - 29.12.2011

Have you added neon functions in OnDialogResponse"?


Re: Help with /neon! - N0FeaR - 29.12.2011

can i see dialogid == 101?