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?