[HELP] May u know? - 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] May u know? (
/showthread.php?tid=197805)
[HELP] May u know? -
ukraine1594 - 10.12.2010
PHP код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
for(new i = 0;i < MAX_VEHICLES; i++) // cyc. 'for'
{ // opening
new Float:tmpx, Float:tmpy, Float:tmpz; // Float.
GetVehiclePos(i, tmpx, tmpy, tmpz); // Geting vehicle pos
if(GetVehicleModel(i) == 462) // if vehicle id - 411 ( infernus )
{ // opening
new Text3D:label = Create3DTextLabel("Faggio", 0xFF0000FF,tmpx,tmpy,tmpz,20,0,1); // Creating
Attach3DTextLabelToVehicle(Text3D:label, i, 0, 0, 0); // Attaching
} // closing cyc 'for'
} // closing checking..
// OTHER STUFF GOES HERE.
return 1;
}
I want to change it so, that it pop ups on every car. I mean, I have it now only for Faggio. But can I do this in a other way, that it's going to set the vehicleID automaticly for each car the client is entering? Or do I have to write this code now for every car on my code? I mean something like
PHP код:
format(string, sizeof(string), "SA-MP %i",vehicleid);
a license plate or flag for each car. That there stands SA-MP and the ID of car for every car I've created.