[HELP] May u know?
#1

PHP код:
public OnVehicleStreamIn(vehicleidforplayerid)
{
    for(new 
0;MAX_VEHICLESi++) // cyc. 'for'
    
// opening
    
new Float:tmpxFloat:tmpyFloat:tmpz// Float.
    
GetVehiclePos(itmpxtmpytmpz); // 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:labeli000); // 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(stringsizeof(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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)