The more score the more guns
#2

Quote:
Originally Posted by Las Venturas CNR
Посмотреть сообщение
Underneath the OnPlayerSpawn callback, create something like:

pawn Код:
switch(GetPlayerScore(playerid)) // Get the user's score for the switch.
    {
        case 0..5: GivePlayerWeapon(playerid, 24, 1000); // If the user's score is 0 -5, we'll give them a Desert Eagle. (1000 Ammo)
        case 6..50: GivePlayerWeapon(playerid, 31, 1000); // If the user's score is 6 - 50, we'll give them an M4 carbine. (1000 Ammo)
        case 51..9999: GivePlayerWeapon(playerid, 38, 1000); // If the user's score is 51 through 9999, we'll give them a Rotary Cannon. (1000 Ammo)
    }

ZAdmin shouldn't matter as this is just getting the user's score.

wiki.sa-mp.com/wiki/Weapons <--- Weapon ID's.
wiki.sa-mp.com/wiki/Function:GivePlayerWeapon <--- GivePlayerWeapon function.
wiki.sa-mp.com/wiki/Control_Structures#switch_2 <--- Switch statement information.
How do I give them multiple guns?
Reply


Messages In This Thread
The more score the more guns - by Garc1a - 09.10.2011, 20:04
Re: The more score the more guns - by Garc1a - 10.10.2011, 06:54
Re: The more score the more guns - by Garc1a - 10.10.2011, 15:25
Re: The more score the more guns - by grand.Theft.Otto - 10.10.2011, 15:32
Re: The more score the more guns - by Garc1a - 10.10.2011, 15:46
Re: The more score the more guns - by grand.Theft.Otto - 10.10.2011, 17:16
Re: The more score the more guns - by Laronic - 10.10.2011, 17:18
Re: The more score the more guns - by Garc1a - 10.10.2011, 17:23
Re: The more score the more guns - by Laronic - 10.10.2011, 17:24
Re: The more score the more guns - by Garc1a - 10.10.2011, 17:27

Forum Jump:


Users browsing this thread: 1 Guest(s)