• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Help with DM
#4
This one gives a totally random gun whenever the player kills someone.

Code:
public OnPlayerDeath(playerid, killerid, reason) {

? ? if(killerid != INVALID_PLAYER_ID) {

? ? ? ? ? ? ResetPlayerWeapons(killerid);

? ? ? ? ? ? GivePlayerWeapon(killerid, random(15), 1000);

? ? ? ? }

? ? }

? ? return 1;

}
Check out Desolation Roleplay, where zombie AI and scavenging is bothered by player bandits!


  Reply


Messages In This Thread
Help with DM - by DaZzY - 2020-10-29, 12:29 AM
RE: Help with DM - by Freaksken - 2020-10-29, 01:41 PM
RE: Help with DM - by DaZzY - 2020-10-29, 02:31 PM
RE: Help with DM - by Awide - 2020-10-29, 04:30 PM
RE: Help with DM - by Expert* - 2020-10-30, 07:31 PM

Forum Jump: