Car Variable question
#7

Yeah mate, thanks a lot! And my last question, when i want to create more vehicles, what will be using these police lights, BUT on same COMMAND (/policelights), for example i actually have Bullet maked correctly and how i need to script the second vehicle? For example Sultan? I just don't know how to add second vehicle to this same command.

pawn Код:
//Current command
COMMAND:policelights(playerid, cmdtext[])
{
    if(IsPlayerInVehicle(playerid, STU1))
    if(!IsValidObject(VehicleObject[0]))
    {
        VehicleObject[0] = CreateObject(18646,0,0,-1000,0,0,0,100);
        AttachObjectToVehicle(VehicleObject[0], STU1, 0.449999,0.674999,0.375000,0.000000,0.000000,0.000000);
        SendClientMessage(playerid, 0xFFFFFF, "You turned on police light on your car!");
    }

    else

    if(IsPlayerInVehicle(playerid, STU1))
    if(IsValidObject(VehicleObject[0]))
    {
        DestroyObject(VehicleObject[0]);
        SendClientMessage(playerid, 0xFFFFFF, "You turned off police light on your car!");
    }
   
    return 1;
}
Please, help me with that
Reply


Messages In This Thread
Car Variable question - by Riwerry - 04.11.2013, 22:00
Re: Car Variable question - by InglewoodRoleplay - 04.11.2013, 22:11
Re: Car Variable question - by Riwerry - 04.11.2013, 22:25
Re: Car Variable question - by InglewoodRoleplay - 04.11.2013, 22:30
Re: Car Variable question - by Riwerry - 04.11.2013, 22:31
Re: Car Variable question - by InglewoodRoleplay - 04.11.2013, 22:43
Re: Car Variable question - by Riwerry - 04.11.2013, 22:49
Re: Car Variable question - by Chrillzen - 04.11.2013, 22:56
Re: Car Variable question - by Riwerry - 04.11.2013, 22:57
Re: Car Variable question - by Riwerry - 04.11.2013, 23:18

Forum Jump:


Users browsing this thread: