Mathese 0 Posted January 3 Share Posted January 3 (edited) Hello, my problem is that I am not able to spawn vehicles in UG: MP, here is a piece of code, I hope you can help me. Thank you. INCLUDES: #include <a_samp> #include <YSI\y_ini> #include <streamer> #include <sscanf2> #include <izcmd> #include <djson> #include <foreach> #include <selec2> #include <mSelection> #include <yom_buttons> #include <mapeos> #include <JunkBuster> #include <a_vehicles> #include <ugmp> #include <ugmp_vehicles> #include <ugmp_models> PLUGINS: -sscanf -ugmp -streamer CMD:crearauto(playerid, params[]) { new modelid, color1, color2; if (sscanf(params, "ddd", modelid, color1, color2)) return _Mensaje(playerid, 3, "0", "/crearauto [modelid] [color 1] [color 2]"); new Float: X, Float: Y, Float: Z, Float: Angle; GetPlayerPos(playerid, X, Y, Z); GetPlayerFacingAngle(playerid, Angle); CreateVehicle(modelid, X, Y, Z, Angle, color1, color2, 0 ,0); return 1; } Edited January 3 by Mathese Add plugins Link to post Share on other sites