У меня все ок. Тестировал. Только надо "mesto" заменить на "seatid"
Честно не знаю, что подразумевается под _ALS_Hook, но вот так будет он выглядеть в коде: Ко всем дефайнам: #if defined _ALS_PutPlayerInVehicle #undef PutPlayerInVehicle #else #define _ALS_PutPlayerInVehicle #endif #define PutPlayerInVehicle _ALS_PutPlayerInVehicle Функция: stock _ALS_PutPlayerInVehicleEx(playerid, vehicleid, seatid) { PutPlayerInVehicle(playerid, vehicleid, seatid); SetTimerEx("NOP_PutPlayerInVehicle" , 350, false, "i", playerid); } Таймер: forward NOP_PutPlayerInVehicle(playerid); public NOP_PutPlayerInVehicle(playerid) { if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) return BanEx(playerid, "NOP_PutPlayerInVehicle"); return 1; } Использовать можно обычную функцию PutPlayerInVehicle, он передефайнена теперь.
#if defined _ALS_PutPlayerInVehicle #undef PutPlayerInVehicle #else #define _ALS_PutPlayerInVehicle #endif #define PutPlayerInVehicle _ALS_PutPlayerInVehicle
stock _ALS_PutPlayerInVehicleEx(playerid, vehicleid, seatid) { PutPlayerInVehicle(playerid, vehicleid, seatid); SetTimerEx("NOP_PutPlayerInVehicle" , 350, false, "i", playerid); }
forward NOP_PutPlayerInVehicle(playerid); public NOP_PutPlayerInVehicle(playerid) { if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) return BanEx(playerid, "NOP_PutPlayerInVehicle"); return 1; }
Мои работы Мои работы Код: Applications Pawno Rus No 217 [28.06.2008] SA-MP 0.3e Rcon Edition Rus [16.09.2010] Win-server Autostarter [31.01.2011] Gamemodes Public Enemy LS/SF/LV [25.07.2010] TDM Style [] Filterscripts Sex [05.07.2008] Showgirls [24.05.2010] Equip [02.02.2011] Jellyfisher [11.02.2012] Tank Lights System [14.03.2013] All Animations [13.07.2008] Colored Healthbar [08.06.2010] Exclusive Clothes [07.03.2011] Parking [12.02.2012] TextDraw Captcha [22.03.2013] Pay'n'Spray Colors Menu [23.06.2010] 0.2.2 Class Selection [07.03.2011] Serial ID Ban [31.03.2012] Wedding [28.06.2010] Other Chatname [09.03.2011] Advanced Weapons [02.04.2012] Rusty Brown's Ring Donuts [29.06.2010] Top View [09.03.2011] Ingame Map Editor [01.05.2012] Rainbow Tab [10.03.2011] Colored Checkpoints [10.05.2012] Textdraw Intro [03.09.2011] Experience & Level System [22.07.2012] Kickstart Challange [06.09.2011] Target Message System [17.11.2012] Love Fist Concert [09.10.2011] 3D Info [12.10.2011] Vehicle Bonus Return [13.10.2011] Rockstar Logos Collection [16.10.2011] Textures Ingame Editor [16.10.2011] Map-Radar [17.10.2011] Maps Military Vehicle Interior [06.04.2012] Barracks Soldiers Interior [07.04.2012] Barracks Officers Interior [08.04.2012] Include FD ASM - форматированный диалог на #emit [31.03.2013]
Applications Pawno Rus No 217 [28.06.2008] SA-MP 0.3e Rcon Edition Rus [16.09.2010] Win-server Autostarter [31.01.2011] Gamemodes Public Enemy LS/SF/LV [25.07.2010] TDM Style [] Filterscripts Sex [05.07.2008] Showgirls [24.05.2010] Equip [02.02.2011] Jellyfisher [11.02.2012] Tank Lights System [14.03.2013] All Animations [13.07.2008] Colored Healthbar [08.06.2010] Exclusive Clothes [07.03.2011] Parking [12.02.2012] TextDraw Captcha [22.03.2013] Pay'n'Spray Colors Menu [23.06.2010] 0.2.2 Class Selection [07.03.2011] Serial ID Ban [31.03.2012] Wedding [28.06.2010] Other Chatname [09.03.2011] Advanced Weapons [02.04.2012] Rusty Brown's Ring Donuts [29.06.2010] Top View [09.03.2011] Ingame Map Editor [01.05.2012] Rainbow Tab [10.03.2011] Colored Checkpoints [10.05.2012] Textdraw Intro [03.09.2011] Experience & Level System [22.07.2012] Kickstart Challange [06.09.2011] Target Message System [17.11.2012] Love Fist Concert [09.10.2011] 3D Info [12.10.2011] Vehicle Bonus Return [13.10.2011] Rockstar Logos Collection [16.10.2011] Textures Ingame Editor [16.10.2011] Map-Radar [17.10.2011] Maps Military Vehicle Interior [06.04.2012] Barracks Soldiers Interior [07.04.2012] Barracks Officers Interior [08.04.2012] Include FD ASM - форматированный диалог на #emit [31.03.2013]
окся а чем отличается:d
Best regard Anisimov Artem
х3... нашел косяк... _ALS_ ... там без Ex, но тогда функция ругается. Надо узнать поконкретнее про этот ALS хук.
Правила форума