10.12.2010, 12:13
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;
}
PHP код:
format(string, sizeof(string), "SA-MP %i",vehicleid);