Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //FIlTERSCRIPT V0.1 by Bratic
- #include <a_samp>
- #include <y_cmd>
- #include <sscanf2>
- //COMMAND
- /////////////////////////////////////////////VEH by Bratic/////////////////////////////////////////////////////////////////////
- YCMD:veh(playerid, params[],help)
- {
- #pragma unused help
- new vehID,color1,color2,string[128],Float:A;//,Float:X,Float:Y,Float:Z,Float:A;
- {
- if(sscanf(params, "iii", vehID,color1,color2)) return SendClientMessage(playerid, 0xFFFFFFFF, "{FF8000}>>[COMMAND]: {FFFFFF}/veh [ID vozila] [color 1] [color2]");
- if(vehID < 400 || vehID > 611) { SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}>> [ERROR]: {FFFFFF}ID vehicle can not be below 400 or over 611!"); return 1; }
- if(color1 < -1 || color1 > 255) { SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}>> [ERROR]: {FFFFFF}ID colors 1 can not be below 0 or over 126 !"); return 1; }
- if(color2 < -1 || color2 > 255) { SCM(playerid, 0xFFFFFFFF, "{FF0000}>> [ERROR]: {FFFFFF}ID colors 2 can not be below 0 or over 126 !"); return 1; }
- GetPlayerPos(playerid, X,Y,Z);
- GetPlayerFacingAngle(playerid, A);
- new carid = CreateVehicle(vehID, X,Y+5,Z,A,color1,color2,0);
- PutPlayerInVehicle(playerid,carid,0);
- format(string,sizeof(string), "{DE381B}>> [FS by Bratic]: {FFFF00}Player %s (%d) are spawned vehicle. | Vehicle ID: %d.",GetName(playerid),playerid,vehID);
- SendClientMessage(playerid, 0xFFFFFFFF, string);
- }
- return 1;
- }
- ///////////////////////////////////DTC by Bratic/////////////////////////////////
- YCMD:dtc(playerid, params[], help)
- {
- #pragma unused help
- new string[256];
- {
- new sendername[MAX_PLAYER_NAME];
- new vehicle = GetPlayerVehicleID(playerid);
- DestroyVehicle(vehicle);
- format(string,256,"[PLAYER]: %s (%d) ARE DESTROYED VEHICLE !!!", sendername, playerid);
- SendClientMessage(playerid, 0xFFFFFFFF, string);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment