Sign in to follow this  
Followers 0
Drummer1993

Тюннинг на авто

1 post in this topic

Здравствуйте, хочу представить вам маленькую радость для ваших игроков (на скрине будет все понято что за радость) буду дополнять объектами (доп. бамперы  мигалки, и т.к ) всем удачи !
работает только на авто id 411, 541 , 451 , 415
Автор: Неизвестный

Спойлер

}
CMD:newtunning(playerid, params[])
{
    if(GetPlayerState(playerid)!=2) return SendClientMessage(playerid, -1, "Вы не в машине");
    ShowPlayerDialogEx(playerid, 9934, DIALOG_STYLE_LIST, "{FFFFFF}Выберите устанавливаемый тюнинг. Цена-{248daa}10000$", "{FFFFFF}1. Двигатель\n{FFFFFF}2. Мигалка\n{FFFFFF}3. Спойлер", "Выбрать", "Отмена");
	return 1;
Спойлер


}
	case 9934:
	    {
			new tunningupdate;
			new vehicleid = GetPlayerVehicleID(playerid);
	        if(response)
			{
			    switch(listitem)
			    {
					case 0:
					{
					    //Двигатель
					    switch(GetVehicleModel(vehicleid))
					    {
					        case 411:
					        {
								if(PlayerInfo[playerid][pMoney]<10000) return SendClientMessage(playerid,COLOR_VALIK,"[Информация] {FFFFFF}У Вас недостаточно денег!");
					            tunningupdate = CreateDynamicObject(19917,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    							AttachDynamicObjectToVehicle(tunningupdate, GetPlayerVehicleID(playerid), 0.000, 1.841, -0.270, 0.000, 0.000, 0.000);
    							SendClientMessage(playerid,COLOR_VALIK,"[Информация] {FFFFFF}Двигатель успешно установлен!");
    							GiveMoney(playerid,-10000);
					        }
					        case 541:
					        {
					            if(PlayerInfo[playerid][pMoney]<10000) return SendClientMessage(playerid,COLOR_VALIK,"[Информация] {FFFFFF}У Вас недостаточно денег!");
					            tunningupdate = CreateDynamicObject(19917,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    							AttachDynamicObjectToVehicle(tunningupdate, GetPlayerVehicleID(playerid), 0.000, 1.591, -0.260, 0.000, 0.000, 0.000);
    							SendClientMessage(playerid,COLOR_VALIK,"[Информация] {FFFFFF}Двигатель успешно установлен!");
    							GiveMoney(playerid,-10000);
					        }
					        case 451:
					        {
					            if(PlayerInfo[playerid][pMoney]<10000) return SendClientMessage(playerid,COLOR_VALIK,"[Информация] {FFFFFF}У Вас недостаточно денег!");
					            tunningupdate = CreateDynamicObject(19917,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    							AttachDynamicObjectToVehicle(tunningupdate, GetPlayerVehicleID(playerid), 0.000, 1.741, -0.340, 0.000, 0.000, 0.000);
    							SendClientMessage(playerid,COLOR_VALIK,"[Информация] {FFFFFF}Двигатель успешно установлен!");
    							GiveMoney(playerid,-10000);
					        }
							case 415:
							{
							    if(PlayerInfo[playerid][pMoney]<10000) return SendClientMessage(playerid,COLOR_VALIK,"[Информация] {FFFFFF}У Вас недостаточно денег!");
							    tunningupdate = CreateDynamicObject(19917,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    							AttachDynamicObjectToVehicle(tunningupdate, GetPlayerVehicleID(playerid), 0.000, 1.670, -0.360, 0.000, 0.000, 0.000);
    							SendClientMessage(playerid,COLOR_VALIK,"[Информация] {FFFFFF}Двигатель успешно установлен!");
    							GiveMoney(playerid,-10000);
							}
					    }
					}
	 				case 1:
	 				{
	 				    switch(GetVehicleModel(vehicleid))
					    {
	 				    	case 411:
					        {
					            if(PlayerInfo[playerid][pMoney]<10000) return SendClientMessage(playerid,COLOR_VALIK,"[Информация] {FFFFFF}У Вас недостаточно денег!");
					            tunningupdate = CreateDynamicObject(18646,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    							AttachDynamicObjectToVehicle(tunningupdate, GetPlayerVehicleID(playerid), 0.000, 0.000, 0.719, 0.000, 0.000, 0.000);
    							SendClientMessage(playerid,COLOR_VALIK,"[Информация] {FFFFFF}Мигалка успешно установлена!");
    							GiveMoney(playerid,-10000);
					        }
					        case 541:
					        {
					            if(PlayerInfo[playerid][pMoney]<10000) return SendClientMessage(playerid,COLOR_VALIK,"[Информация] {FFFFFF}У Вас недостаточно денег!");
                 				tunningupdate = CreateDynamicObject(18646,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    							AttachDynamicObjectToVehicle(tunningupdate, GetPlayerVehicleID(playerid), 0.000, -0.189, 0.659, 0.000, 0.000, 0.000);
    							SendClientMessage(playerid,COLOR_VALIK,"[Информация] {FFFFFF}Мигалка успешно установлена!");
    							GiveMoney(playerid,-10000);
					        }
					        case 451:
					        {
					            if(PlayerInfo[playerid][pMoney]<10000) return SendClientMessage(playerid,COLOR_VALIK,"[Информация] {FFFFFF}У Вас недостаточно денег!");
					            tunningupdate = CreateDynamicObject(18646,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    							AttachDynamicObjectToVehicle(tunningupdate, GetPlayerVehicleID(playerid), 0.000, -0.189, 0.659, 0.000, 0.000, 0.000);
    							SendClientMessage(playerid,COLOR_VALIK,"[Информация] {FFFFFF}Мигалка успешно установлена!");
    							GiveMoney(playerid,-10000);
					        }
							case 415:
							{
							    if(PlayerInfo[playerid][pMoney]<10000) return SendClientMessage(playerid,COLOR_VALIK,"[Информация] {FFFFFF}У Вас недостаточно денег!");
							    tunningupdate = CreateDynamicObject(18646,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    							AttachDynamicObjectToVehicle(tunningupdate, GetPlayerVehicleID(playerid), 0.000, -0.430, 0.650, 0.000, 0.000, 0.000);
    							SendClientMessage(playerid,COLOR_VALIK,"[Информация] {FFFFFF}Мигалка успешно установлена!");
    							GiveMoney(playerid,-10000);
							}
						}
					}
					case 2:
	 				{
	 				    switch(GetVehicleModel(vehicleid))
					    {
	 				        case 411:
					        {
					            if(PlayerInfo[playerid][pMoney]<10000) return SendClientMessage(playerid,COLOR_VALIK,"[Информация] {FFFFFF}У Вас недостаточно денег!");
					            tunningupdate = CreateDynamicObject(1003,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    							AttachDynamicObjectToVehicle(tunningupdate, GetPlayerVehicleID(playerid), 0.000, -2.331, 0.169, 0.000, 0.000, 0.000);
    							SendClientMessage(playerid,COLOR_VALIK,"[Информация] {FFFFFF}Спойлер успешно установлен!");
    							GiveMoney(playerid,-10000);
					        }
					        case 541:
					        {
					            if(PlayerInfo[playerid][pMoney]<10000) return SendClientMessage(playerid,COLOR_VALIK,"[Информация] {FFFFFF}У Вас недостаточно денег!");
                 				tunningupdate = CreateDynamicObject(1003,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    							AttachDynamicObjectToVehicle(tunningupdate, GetPlayerVehicleID(playerid), 0.000, -2.219, 0.290, 0.000, 0.000, 0.000);
    							SendClientMessage(playerid,COLOR_VALIK,"[Информация] {FFFFFF}Спойлер успешно установлен!");
    							GiveMoney(playerid,-10000);
					        }
					        case 451:
					        {
					            if(PlayerInfo[playerid][pMoney]<10000) return SendClientMessage(playerid,COLOR_VALIK,"[Информация] {FFFFFF}У Вас недостаточно денег!");
					            tunningupdate = CreateDynamicObject(1003,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    							AttachDynamicObjectToVehicle(tunningupdate, GetPlayerVehicleID(playerid), 0.000, -2.530, 0.190, 0.000, 0.000, 0.000);
    							SendClientMessage(playerid,COLOR_VALIK,"[Информация] {FFFFFF}Спойлер успешно установлен!");
    							GiveMoney(playerid,-10000);
					        }
							case 415:
							{
							    if(PlayerInfo[playerid][pMoney]<10000) return SendClientMessage(playerid,COLOR_VALIK,"[Информация] {FFFFFF}У Вас недостаточно денег!");
							    tunningupdate = CreateDynamicObject(1003,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    							AttachDynamicObjectToVehicle(tunningupdate, GetPlayerVehicleID(playerid), 0.000, -2.419, 0.150, 0.000, 0.000, 0.000);
    							SendClientMessage(playerid,COLOR_VALIK,"[Информация] {FFFFFF}Спойлер успешно установлен!");
    							GiveMoney(playerid,-10000);
							}
						}
					}
			    }
		 	}

 

 

 

Edited by Drummer1993

Share this post


Link to post
Share on other sites

Your content will need to be approved by a moderator

Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   You have pasted content with formatting.   Remove formatting

  Only 75 emoticons maximum are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

Loading...
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • Leo_Carter
      By Leo_Carter
      Такая проблема то что я пишу мод с нуля и когда почти мод был готов, я решил его залить на хостинг, ну там есть подключение к mysql и всё подобное, только вот залил на хостинг, запускаю и у меня вот такие дебаги вылезают и сервер Unknown

       
      Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3.7-R2, (C)2005-2015 SA-MP Team [18:54:42] filterscripts = "" (string) [18:54:42] [18:54:42] Server Plugins [18:54:42] -------------- [18:54:42] Loading plugin: mysql_static.so [18:54:42] >> plugin.mysql: R39-2 successfully loaded. [18:54:42] Loaded. [18:54:42] Loading plugin: pawncmd.so [18:54:42] Pawn.CMD plugin v3.1.4 by urShadow loaded [18:54:42] Loaded. [18:54:42] Loading plugin: pawnregex.so [18:54:42] Pawn.Regex plugin v1.1 by urShadow loaded [18:54:42] Loaded. [18:54:42] Loading plugin: crashdetect.so [18:54:42] CrashDetect v4.18.1 is OK. [18:54:42] Loaded. [18:54:42] Loading plugin: streamer.so [18:54:42] *** Streamer Plugin v2.8.2 by Incognito loaded *** [18:54:42] Loaded. [18:54:42] Loading plugin: sscanf.so [18:54:42] [18:54:42] =============================== [18:54:42] sscanf plugin loaded. [18:54:42] Version: 2.8.1 [18:54:42] (c) 2012 Alex "Y_Less" Cole [18:54:42] =============================== [18:54:42] Loaded. [18:54:42] Loaded 6 plugins. [18:54:42] [18:54:42] Filterscripts [18:54:42] --------------- [18:54:42] Loaded 0 filterscripts. [18:54:42] [debug] Run time error 19: "File or function is not found" [18:54:42] [debug] cache_get_value_name [18:54:42] [debug] cache_get_value_name_int [18:54:42] [debug] Run time error 19: "File or function is not found" [18:54:42] [debug] cache_get_value_name [18:54:42] [debug] cache_get_value_name_int [18:54:42] Script[gamemodes/project.amx]: Run time error 19: "File or function is not found" [18:54:42] Number of vehicle models: 0 [18:54:42] [debug] Run time error 19: "File or function is not found" [18:54:42] [debug] cache_get_value_name [18:54:42] [debug] cache_get_value_name_int [18:54:42] [debug] Run time error 19: "File or function is not found" [18:54:42] [debug] cache_get_value_name [18:54:42] [debug] cache_get_value_name_int