Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*==============================================================================
- ========= Made By : J4mmyHD=====================================================
- =============================== JVEH System=====================================
- ============ DONT REMOVE CREDITS ===============================================
- ==============================================================================*/
- //==============================================================================
- // Includes
- //==============================================================================
- #include <a_samp>
- #include <sscanf2>
- //==============================================================================
- // Makeing it a Filterscript
- //==============================================================================
- #define FILTERSCRIPT
- #if defined FILTERSCRIPT
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- //==============================================================================
- // The Varibles
- //==============================================================================
- new Float:x, Float:y, Float:z, id, col1, col2;
- //==============================================================================
- // The Script
- //==============================================================================
- public OnFilterScriptInit()
- {
- print("========================================");
- print("============== JVEH System =============");
- print("========================================");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/veh", cmdtext, true, 10) == 0)
- {
- if(sscanf(cmdtext, "iii", id, col1, col2)) return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /veh [vehicleid] [color1] [color2]");
- GetPlayerPos(playerid, x, y, z);
- CreateVehicle(id, x, y, z, 0, col1, col2, 2000);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "JVEH :{FFFFFF} You have spawned a car at your postion!");
- return 1;
- }
- return 0;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment