Quote:
Originally Posted by UFF
I just gave him the outline of the code.
here is it.
pawn Code:
stock GivePlayerSpawnWeapons(playerid) { switch(RandomWeapons[playerid]) { case 0: { // Random Weapons 1 GivePlayerWeapon(playerid, 31, 500); // M4 GivePlayerWeapon(playerid, 24, 400); // Deagle RandomWeapons[playerid]++; // Increases the RandomWeapon value to 1, } case 1: { // Random Weapons 2 GivePlayerWeapon(playerid, 32, 800); // TEC-9 GivePlayerWeapon(playerid, 26, 20); // SawnOff RandomWeapons[playerid] = 0; // Reset to Value 0 , so it will give Random Weapon 1 weapons again when player spawns. } } }
Atleast let him learn something instead of giving him the whole code and he will just copy and paste it.
|
That's not really a "random weapons" because what you made will give the player after a death, first time a deagle & m4, then a tec9 & sawn etcetera, it'll remain the same.