01.11.2018, 16:40
Quote:
|
The fuck? Firstly there is no absolute "GivePlayerWeapon" native in your code, from where do you want to get the weapon? Then, weapons IDs are limited between 1 and 46, and thirdly I don't understand a shit in your switch statement, sorry :/
|
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.
}
}
}

