Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- public OnFilterScriptInit()
- {
- print("---------------------\n");
- print("| \n");
- print("| No Dialog Tuning \n");
- print("| script \n");
- print("| L O A D E D ! \n");
- print("| \n");
- print("---------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("---------------------\n");
- print("| \n");
- print("| No Dialog Tuning \n");
- print("| script \n");
- print("| U N L O A D E D ! \n");
- print("| \n");
- print("---------------------\n");
- return 1;
- }
- public OnPlayerCommandText(playerid,cmdtext[])
- {
- new vehid;
- vehid = GetPlayerVehicleID(playerid);
- if(strcmp("/tuninghelp",cmdtext,true,0) == 0)
- {
- ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "Tuning Parancsok", "/motorjavit - megjavítja a motort. \n /karosszeriajavit - megjavítja a külsejét a kocsinak. \n /paintjob 1/2/3 - 'matricák' rárakása a kocsira /cc- black/white/red/green/orange/blue/grey - átszinezi a kocsit \n /nitro - nitrót tesz a kocsidba \n /hidraulika - hidraulikát tesz a kocsidba. \n /spoiler - Spoilered átállitja: Win", "Oké", "Kilépés");
- }
- if(strcmp("/motorjavit",cmdtext,true,11) == 0)
- {
- SetVehicleHealth(vehid,1000.0);
- GivePlayerMoney(playerid,-108);
- SendClientMessage(playerid,0xAAAAAAAA,"Megjavítottad a motort! -108$ (20.088 HUF)");
- }
- if(strcmp("/karosszeriajavit",cmdtext, true, 17) == 0)
- {
- RepairVehicle(vehid);
- GivePlayerMoney(playerid,-100);
- SendClientMessage(playerid,0xAAAAAAAA,"Megjavítottad a karosszériát! -100$ (18.600 HUF)");
- }
- if(strcmp("/paintjob1", cmdtext, true, 10) == 0)
- {
- ChangeVehiclePaintjob(vehid, 1);
- SendClientMessage(playerid,0xAAAAAAAA,"Paintjob: 1");
- }
- if(strcmp("/paintjob2", cmdtext, true, 10) == 0)
- {
- ChangeVehiclePaintjob(vehid, 2);
- SendClientMessage(playerid,0xAAAAAAAA,"Paintjob: 2");
- }
- if(strcmp("/paintjob3", cmdtext, true, 10) == 0)
- {
- ChangeVehiclePaintjob(vehid, 3);
- SendClientMessage(playerid,0xAAAAAAAA,"Paintjob: 3");
- }
- if(strcmp("/cc-black", cmdtext, true, 9) == 0)
- {
- ChangeVehicleColor(vehid, 0, 0);
- }
- if(strcmp("/cc-white", cmdtext, true, 9) == 0)
- {
- ChangeVehicleColor(vehid, 1, 1);
- }
- if(strcmp("/cc-green", cmdtext, true, 9) == 0)
- {
- ChangeVehicleColor(vehid, 86 , 86 );
- }
- if(strcmp("/cc-red", cmdtext, true, 9) == 0)
- {
- ChangeVehicleColor(vehid, 3, 3);
- }
- if(strcmp("/cc-grey", cmdtext, true, 9) == 0)
- {
- ChangeVehicleColor(vehid, 13, 13);
- }
- if(strcmp("/cc-blue", cmdtext, true, 9) == 0)
- {
- ChangeVehicleColor(vehid, 53, 53);
- }
- if(strcmp("/cc-orange", cmdtext, true, 9) == 0)
- {
- ChangeVehicleColor(vehid, 6, 6);
- }
- if(strcmp("/nitrogen", cmdtext, true, 9) == 0)
- {
- AddVehicleComponent(vehid,1010);
- }
- if(strcmp("/hidraulika", cmdtext, true, 11) == 0
- {
- AddVehicleComponent(vehid,1087);
- SendClientMessage(playreid,0xAAAAAAAA,"Hidraulika berakva!");
- }
- if(strcmp("/spoiler",cmdtext, true, 8) == 0)
- {
- AddVehicleComponent(vehid, 1001);
- SendClientMessage(playerid,0xAAAAAAAA,"Spoiler: Win"
- }
- if(strcmp("/remove",cmdtext,true,7) == 0 && IsPlayerAdmin(playerid))
- {
- DestroyVehicle(vehid);
- SendClientMessage(playerid,0xAAAAAAAA,"A jármu elteleportálódott a s e m m i b e !!!");
- }
- if(strcmp("/respawn", cmdtext, true, 8) == 0 && IsPlayerAdmin(playerid))
- {
- SetVehicleToRespawn(vehid);
- SendClientMessage(playerid,0xAAAAAAAA,"Jármu visszatéve az eredeti helyére!");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement