Help please - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help please (
/showthread.php?tid=211345)
Help please -
darkknight123 - 15.01.2011
Im trying to script a License plate system with 3D text labels hwo would i make each one different and changeable?
please explain alot ima noob heres what i got so far
Quote:
new Text3D:vTexts[MAX_VEHICLES];//all my OnGameModeInt stuff
for(new vehid;vehid<MAX_VEHICLES;vehid++)
{
if(GetVehicleModel(vehid))
{
vTexts[vehid]=Create3DTextLabel("MW-DM", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 0);
Attach3DTextLabelToVehicle(vTexts[vehid],vehid,0.0,0.0,2.0);
}
}
return 1;
}
// after all that stuff
|
all help is appreciated thanks
Re: Help please -
darkknight123 - 15.01.2011
someone? anyone? please help!
Re: Help please -
ifly4life - 15.01.2011
SetVehicleNumberPlate(vehicleid,"NAME");
Try this or below to make the plate ther persons name:
Pawn Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
new plname[24];
GetPlayerName(playerid, plname, sizeof(plname));
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SetVehicleNumberPlate(vehicleid,plname);
return 1;
}
return 0;
}
Re: Help please -
darkknight123 - 15.01.2011
Yes, I dont want the 0.3c plates im wanting 3D lables on them