Admin CMDS !! help please
#10

can you tell me whats going on here its the vehicle part in it i think



// Read type
index = token_by_delim(line,var_from_line,',',index);
if(index == (-1)) continue;
vehicletype = strval(var_from_line);
if(vehicletype < 400 || vehicletype > 611) continue;

// Read X, Y, Z, Rotation
index = token_by_delim(line,var_from_line,',',index+1);
if(index == (-1)) continue;
SpawnX = floatstr(var_from_line);

index = token_by_delim(line,var_from_line,',',index+1);
if(index == (-1)) continue;
SpawnY = floatstr(var_from_line);

index = token_by_delim(line,var_from_line,',',index+1);
if(index == (-1)) continue;
SpawnZ = floatstr(var_from_line);

index = token_by_delim(line,var_from_line,',',index+1);
if(index == (-1)) continue;
SpawnRot = floatstr(var_from_line);

// Read Color1, Color2
index = token_by_delim(line,var_from_line,',',index+1);
if(index == (-1)) continue;
Color1 = strval(var_from_line);

index = token_by_delim(line,var_from_line,';',index+1);
Color2 = strval(var_from_line);

//printf("%d,%d,%f,%f,%f,%f,%d,%d",total_vehicles_fr om_files+vehicles_loaded+1,vehicletype,SpawnX,Spaw nY,SpawnZ,SpawnRot,Color1,Color2);

AddStaticVehicleEx(vehicletype,SpawnX,SpawnY,Spawn Z,SpawnRot,Color1,Color2,(30*60)); // respawn 30 minutes
vehicles_loaded++;
}



================================
SORRY FOR DOUBLE POST
Reply


Messages In This Thread
Admin CMDS !! help please - by a!DaN)_)-) - 28.07.2010, 10:14
Re: Admin CMDS !! help please - by Lorenc_ - 28.07.2010, 10:48
Re: Admin CMDS !! help please - by Shubham - 28.07.2010, 10:54
Re: Admin CMDS !! help please - by a!DaN)_)-) - 28.07.2010, 10:57
Re: Admin CMDS !! help please - by Cameltoe - 28.07.2010, 11:01
Re: Admin CMDS !! help please - by Hiddos - 28.07.2010, 11:03
Re: Admin CMDS !! help please - by a!DaN)_)-) - 28.07.2010, 11:06
Re: Admin CMDS !! help please - by Hiddos - 28.07.2010, 11:09
Re: Admin CMDS !! help please - by a!DaN)_)-) - 28.07.2010, 11:12
Re: Admin CMDS !! help please - by a!DaN)_)-) - 28.07.2010, 11:16

Forum Jump:


Users browsing this thread: 1 Guest(s)