Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * ## LEASE ATENTAMENTE PARA NO CONVERTIRSE EN LAMMER!!.: :D ##
- *
- * Estè Simple FUNCION esta hecho especialmente para www.forum.sa-mp.com
- * NO Publicar estè FUNCION en Otros foros de SA-MP y hacerse pasar por el creador del CODE.
- *
- * Codigo Creado Por OTACON
- *
- * CREDITOS:
- * OTACON: Realizacion y Idea de creacion del code.
- * TÙ: Modificacion libremente respetando lo mencionado ;).
- *
- * NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
- *
- * Prohibido TOTALMENTE el Robo de Créditos o la
- * Publicación de este FUNCION sin Mi Permiso.
- */
- /*
- * ## READ CAREFULLY TO AVOID BECOMING LAMMER!.: :D ##
- *
- * This simple FUNCTION is made especially for www.forum.sa-mp.com
- * DO NOT Post the FUNCTION in Other SAMP forums and impersonating the creator of the CODE.
- *
- * Code Created By OTACON
- *
- * CREDITS:
- * OTACON: Idea Making and code creation.
- * YOUR: Modification freely respecting the above ;).
- *
- * NOTE: Less Credits for those who criticize me.. JO'PUTAS! :D xD ;)
- *
- * FULLY spaces Theft Credit or
- * Publication of this MAP without my permission.
- */
- //FUNCTION...
- new ColorVehicle[2][MAX_VEHICLES];
- #define GetVehicleColor1(%0) ColorVehicle[0][%0]
- #define GetVehicleColor2(%0) ColorVehicle[1][%0]
- stock ChangeVehicleColorEx(vehicleid, color1, color2){
- ColorVehicle[0][vehicleid] = color1;
- ColorVehicle[1][vehicleid] = color2;
- return ChangeVehicleColor(vehicleid, color1, color2); }
- #define ChangeVehicleColor ChangeVehicleColorEx
- /*
- native ChangeVehicleColor(vehicleid, color1, color2); //el del por defecto de SA-MP
- native GetVehicleColor1(vehicleid); //para verificar e guardar el color 1 que tiene el vehiculo
- native GetVehicleColor2(vehicleid); //para verificar e guardar el color 2 que tiene el vehiculo
- */
- //TESTING...
- #include <a_samp>
- #include <zcmd> //http://forum.sa-mp.com/showthread.php?t=91354
- #include <sscanf2> //http://forum.sa-mp.com/showthread.php?t=120356
- COMMAND:colorveh(playerid, params[]){
- new vehicleid = GetPlayerVehicleID(playerid), data[128];
- if(sscanf(params, "dd", params[0], params[1])) return SendClientMessage(playerid, -1, "Escribe: /colorveh [color1] [color2]");
- format(data,sizeof(data),"Color Anterior en Variable: [color1:%d - color2:%d]",GetVehicleColor1(vehicleid),GetVehicleColor2(vehicleid));
- SendClientMessage(playerid,-1,data);
- ChangeVehicleColor(vehicleid, params[0], params[1]);
- format(data,sizeof(data),"Color Colocado: [color1:%d - color2:%d] - Color guardado en Variable: [color1:%d - color2:%d]",params[0], params[1], GetVehicleColor1(vehicleid),GetVehicleColor2(vehicleid));
- SendClientMessage(playerid,-1,data);
- return true;
- }
- /*
- * ## LEASE ATENTAMENTE PARA NO CONVERTIRSE EN LAMMER!!.: :D ##
- *
- * Estè Simple FUNCION esta hecho especialmente para www.forum.sa-mp.com
- * NO Publicar estè FUNCION en Otros foros de SA-MP y hacerse pasar por el creador del CODE.
- *
- * Codigo Creado Por OTACON
- *
- * CREDITOS:
- * OTACON: Realizacion y Idea de creacion del code.
- * TÙ: Modificacion libremente respetando lo mencionado ;).
- *
- * NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
- *
- * Prohibido TOTALMENTE el Robo de Créditos o la
- * Publicación de este FUNCION sin Mi Permiso.
- */
- /*
- * ## READ CAREFULLY TO AVOID BECOMING LAMMER!.: :D ##
- *
- * This simple FUNCTION is made especially for www.forum.sa-mp.com
- * DO NOT Post the FUNCTION in Other SAMP forums and impersonating the creator of the CODE.
- *
- * Code Created By OTACON
- *
- * CREDITS:
- * OTACON: Idea Making and code creation.
- * YOUR: Modification freely respecting the above ;).
- *
- * NOTE: Less Credits for those who criticize me.. JO'PUTAS! :D xD ;)
- *
- * FULLY spaces Theft Credit or
- * Publication of this MAP without my permission.
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement