Help with neon lights
#4

pawn Код:
if(strcmp(cmd, "/neon", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerInfo[playerid][pAdmin] > 0)
        {
            if( !IsPlayerInAnyVehicle( playerid ) return;
           
            new
                id,
                neon,
                vehid;
               
            id = GetVehicleModel(playerid);
            vehid = GetPlayerVehicleID(playerid);
               
            if(id == 400)
            {
                neon = CreateObject(18648,0,0,0,0,0,0,283);
                AttachObjectToVehicle(neon, vehid, 0.2,0,0.71,0,0,0);
            }
            if(id == 401)
            {
                neon = CreateObject(18648,0,5,25,0,0,0,283);
                AttachObjectToVehicle(neon, vehid, 0.2,0,0.71,0,0,0);
            }
        }
        return 1;
    }
}
This checks, is player in vehicle or not.
Reply


Messages In This Thread
Help with neon lights - by scripter1 - 03.12.2010, 21:39
Re: Help with neon lights - by Zamaroht - 03.12.2010, 21:41
Re: Help with neon lights - by piohh - 03.12.2010, 21:43
Re: Help with neon lights - by Axuj - 03.12.2010, 21:46
Re: Help with neon lights - by The_Gangstas - 03.12.2010, 21:52
AW: Help with neon lights - by KingCaN - 03.12.2010, 21:54
Re: Help with neon lights - by scripter1 - 03.12.2010, 21:55
Re: AW: Help with neon lights - by scripter1 - 03.12.2010, 22:02
AW: Help with neon lights - by KingCaN - 03.12.2010, 22:05
Re: Help with neon lights - by StreetGT - 03.12.2010, 22:40

Forum Jump:


Users browsing this thread: 2 Guest(s)