SetVehicleNumberPlate
#6

Quote:
Originally Posted by [FU]Victious
Посмотреть сообщение
pawn Код:
public IsACopCar(carid)
{
if(carid == CopCar[i])
{
for(new i = 0; i < sizeof(CopCar); i++)
{
SetVehicleNumberPlate(CopCar[i], "Polizei");
}
return 1;
}
return 0;
}
Sorry for crappy indentation :P
if statement should be IN the loop, fixed indentation too.
pawn Код:
public OnGameModeInit()
{
    //at the bottom of your callback, AFTER you create the police cars
    for(new i = 0; i < sizeof(CopCar); i++)
    {
        SetVehicleNumberPlate(CopCar[i], "Polizei");
        SetVehicleToRespawn(CopCar[i]);
    }
    return 1;
}
EDIT: This should be ok now, idk why the code was in "IsACopCar"
Reply


Messages In This Thread
SetVehicleNumberPlate - by ThomasTailor93 - 18.12.2010, 17:16
Re: SetVehicleNumberPlate - by CrunkBankS - 18.12.2010, 17:24
AW: SetVehicleNumberPlate - by ThomasTailor93 - 18.12.2010, 17:40
Re: SetVehicleNumberPlate - by WillyP - 18.12.2010, 17:41
Re: SetVehicleNumberPlate - by Stefan_Toretto - 18.12.2010, 17:43
Re: SetVehicleNumberPlate - by Dark_Kostas - 18.12.2010, 17:44
Re: SetVehicleNumberPlate - by toneysix - 18.12.2010, 17:45
AW: SetVehicleNumberPlate - by ThomasTailor93 - 18.12.2010, 17:51
Re: SetVehicleNumberPlate - by CrunkBankS - 18.12.2010, 17:51
AW: SetVehicleNumberPlate - by ThomasTailor93 - 18.12.2010, 17:52
Re: SetVehicleNumberPlate - by toneysix - 18.12.2010, 17:53
AW: SetVehicleNumberPlate - by ThomasTailor93 - 18.12.2010, 17:55
AW: SetVehicleNumberPlate - by ThomasTailor93 - 18.12.2010, 17:57
Re: SetVehicleNumberPlate - by toneysix - 18.12.2010, 18:02
AW: SetVehicleNumberPlate - by ThomasTailor93 - 18.12.2010, 18:05

Forum Jump:


Users browsing this thread: 1 Guest(s)