GLOBALELITE.PL GLOBALELITE.pl 83 Napisano 28 Kwietnia 2017 Share Napisano 28 Kwietnia 2017 Installation:server/cfg/sourcemod/plugins/sm_setammo.smx Commands: sm_setammo arg1 arg2 arg3 arg4 arg5 Usage: Command "sm_setammo" is a server-side, therefore must be used in the server console. 1st argument - client index (1-32); 2nd argument - weapon slot, primary or secondary (0, 1); 3rd argument - clip size (integer); 4th argument - ammo (integer); 5th argument - clip size of upgrade ammo (integer). Example of usage in "Func_Timer" of Speedrunner Tools addon: Code: hPlayer.GiveItem("pistol");SendToServerConsole("sm_setammo " + hPlayer.GetEntityIndex() + " 1 12"); hPlayer.GiveItem("pumpshotgun"); SendToServerConsole("sm_setammo " + hPlayer.GetEntityIndex() + " 0 5 10"); NOTE: Before adding number of upgrade ammo, it is necessary to have it in your weapon. Links: Speedrunner Tools: http://steamcommunity.com/sharedfile.../?id=510955402 Attached Files Get Plugin or Get Source (sm_setammo.sp - 3.5 KB) Wyświetl pełny artykuł Odnośnik do odpowiedzi Udostępnij na innych stronach
Rekomendowane odpowiedzi