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 PaintjobVehicle[MAX_VEHICLES],bool:PaintjobActivated[MAX_VEHICLES];
- #define GetVehiclePaintjob(%0) PaintjobActivated[%0]
- #define GetVehiclePaintjobType(%0) PaintjobVehicle[%0]
- stock ChangeVehiclePaintjobEx(vehicleid, paintjobid){
- PaintjobVehicle[vehicleid] = paintjobid;
- PaintjobActivated[vehicleid] = true;
- return ChangeVehiclePaintjob(vehicleid, paintjobid); }
- #define ChangeVehiclePaintjob ChangeVehiclePaintjobEx
- #define RemoveVehiclePaintjob(%0) PaintjobActivated[%0]=false, ChangeVehiclePaintjob(%0, 3)
- /*
- native ChangeVehiclePaintjob(vehicleid, paintjobid); //para colocar el paintjob al vehiculo correspondiente (es el del por defecto de SA-MP).
- native RemoveVehiclePaintjob(vehicleid); //para remover el paintjob del vehiculo correspondiente.
- native GetVehiclePaintjob(vehicleid); //para verificar si el vehiculo correspondiente tiene un paintjob colocado.
- native GetVehiclePaintjobType(vehicleid); //para verificar el tipo de paintjob colocado en el vehiculo correspondiente.
- */
- //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:paintjobveh(playerid, params[]){
- new vehicleid = GetPlayerVehicleID(playerid), data[128];
- if(sscanf(params, "d", params[0])) return SendClientMessage(playerid, -1, "Escribe: /paintjobveh [paintjob]");
- format(data,sizeof(data),"tipo de paintjob Anterior en Variable: [paintjob:%d] - paintjob modo[%b]", GetVehiclePaintjobType(vehicleid), GetVehiclePaintjob(vehicleid));
- SendClientMessage(playerid,-1,data);
- ChangeVehiclePaintjob(vehicleid, params[0]);
- format(data,sizeof(data),"tipo de paintjob Colocado: [paintjob:%d] - tipo de paintjob guardado en Variable: [paintjob:%d] - paintjob activado[%b]",params[0], GetVehiclePaintjobType(vehicleid), GetVehiclePaintjob(vehicleid));
- SendClientMessage(playerid,-1,data);
- return true;
- }
- COMMAND:paintjobremove(playerid, params[]){
- new vehicleid = GetPlayerVehicleID(playerid), data[128];
- format(data,sizeof(data),"removiste el [paintjob:%d] al vehiculo [vehicleid:%d]",GetVehiclePaintjob(vehicleid), vehicleid);
- SendClientMessage(playerid,-1,data);
- RemoveVehiclePaintjob(vehicleid);
- format(data,sizeof(data),"el vehiculo: [vehicleid:%d] tiene el paintjob: [paintjob:%d]",vehicleid, GetVehiclePaintjob(vehicleid));
- SendClientMessage(playerid,-1,data);
- return true;
- }
- COMMAND:paintjobactivated(playerid, params[]){
- new vehicleid = GetPlayerVehicleID(playerid), data[128];
- format(data,sizeof(data),"el vehiculo [vehicleid:%d] tiene el paintjob: [modo:%b]",vehicleid, GetVehiclePaintjobType(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