When i try to spawn a car it only asks for ID not as normal Name (only ID) anyway how to fix it and the 2nd thing is it spams Invalid Command when i spam /wep (id) How to fix both of em?
if ( cmd == "spawncar" ){ if ( IsNum( args ) ) { // an ID was entered CreateVehicle( args.tointeger(), plr.Pos, plr.Angle ); MessagePlayer( "Created vehicle with model " + args, plr ); } else { local vehid = GetVehicleIDFromName( args ); CreateVehicle( vehid, plr.Pos, plr.Angle ); MessagePlayer( "Created vehicle with model " + vehid, plr ); }}
Level -1 means unregistered player, level 0 is registered player.When you are changing your level the server must be closed but make sure that you registered previously.