[Pawn] Help with DM - Printable Version +- Burgershot (https://www.burgershot.gg) +-- Forum: SA-MP (https://www.burgershot.gg/forumdisplay.php?fid=3) +--- Forum: Pawn Scripting (https://www.burgershot.gg/forumdisplay.php?fid=10) +--- Thread: [Pawn] Help with DM (/showthread.php?tid=1294) |
Help with DM - DaZzY - 2020-10-29 Hello ! I have created a DM on my Gamemode And i have idea to add on my DM I want a killer on DM get a new weapon when he kill another player Example Player have A Shotgun when he kill another player the killer get another weapon Sniper and when he kill another again he get another weapon Sawnoff .... I don't know how to start scripting this ... Can someone give me just base and some explication please :) its easy for me to give a player weapon on DM for second kill but hard for me to add weapon for each other kill ( thirst kill ,4 kill .... ) RE: Help with DM - Freaksken - 2020-10-29 Top of script: Code: // Array with the order of the weapons you want OnPlayerConnect: Code: public OnPlayerConnect(playerid) OnPlayerDeath: Code: public OnPlayerDeath(playerid, killerid, reason) RE: Help with DM - DaZzY - 2020-10-29 Thank You thats what i want to start :D RE: Help with DM - Awide - 2020-10-29 This one gives a totally random gun whenever the player kills someone. Code: public OnPlayerDeath(playerid, killerid, reason) { RE: Help with DM - Expert* - 2020-10-30 You should avoid weapons that don't fire bullets like Rpg and Heat seeking rocket. IMO. So, random(13) ? |