2020-10-29, 04:30 PM
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!