[HELP] weapons
#6

Quote:
Originally Posted by UFF
View Post
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.
Reply


Messages In This Thread
[HELP] weapons - by zakariacaspeer - 01.11.2018, 15:43
Re: [HELP] weapons - by TheToretto - 01.11.2018, 15:57
Re: [HELP] weapons - by UFF - 01.11.2018, 16:12
Re: [HELP] weapons - by TheToretto - 01.11.2018, 16:28
Re: [HELP] weapons - by UFF - 01.11.2018, 16:40
Re: [HELP] weapons - by TheToretto - 01.11.2018, 16:53
Re: [HELP] weapons - by zakariacaspeer - 01.11.2018, 17:15
Re: [HELP] weapons - by zakariacaspeer - 01.11.2018, 17:20
Re: [HELP] weapons - by TheToretto - 01.11.2018, 17:33
Re: [HELP] weapons - by zakariacaspeer - 01.11.2018, 18:06
Re: [HELP] weapons - by d3Pedro - 01.11.2018, 18:10
Re: [HELP] weapons - by zakariacaspeer - 01.11.2018, 18:12
Re: [HELP] weapons - by TheToretto - 01.11.2018, 18:46
Re: [HELP] weapons - by zakariacaspeer - 01.11.2018, 18:59
Re: [HELP] weapons - by zakariacaspeer - 01.11.2018, 19:05

Forum Jump:


Users browsing this thread: 1 Guest(s)