12.03.2012, 18:05
Quote:
Can some one explain me why it doesnt works? i'v even placed it on "OnVehicleSpawn"
still it doesn't shows me |
Read this: https://sampwiki.blast.hk/wiki/SetVehicleNumberPlate
Should be something like:
pawn Код:
public OnVehicleSpawn( vehicleid )
{
ChangeVehPlate( vehicleid );
SetVehicleToRespawn(vehicleid);
return 1;
}
stock ChangeVehPlate( vehicleid )
{
new string[8], string2[4];
format(string2,sizeof(string2),"%03i", vehicleid );
format(string,sizeof(string),"LV-%s", string2 );
SetVehicleNumberPlate( vehicleid, string );
return 1;
}
pawn Код:
public OnVehicleSpawn( vehicleid )
{
ChangeVehPlate( vehicleid );
return 1;
}
stock ChangeVehPlate( vehicleid )
{
new string[8], string2[4];
format(string2,sizeof(string2),"%03i", vehicleid );
format(string,sizeof(string),"LV-%s", string2 );
SetVehicleNumberPlate( vehicleid, string );
SetVehicleToRespawn(vehicleid);
return 1;
}