05.03.2015, 13:31
And the switch aswell.
pawn Code:
if(GetPlayerWantedLevel(playerid) > 1)
{
switch( random(5) )
{
case 0: CreateAutoPickup(
( pX + random( 5 ) ),
pY,
pZ,
PICKUP_MODEL_HEALTH,
100,
3,
GetPlayerInterior(playerid),
GetPlayerVirtualWorld(playerid),
10000);
case 1: CreateAutoPickup(
( pX + random( 5 ) ),
pY,
pZ,
PICKUP_MODEL_ARMOR,
100,
3,
GetPlayerInterior(playerid),
GetPlayerVirtualWorld(playerid),
10000);
case 2: CreateAutoPickup(
( pX + random( 5 ) ),
pY,
pZ,
PICKUP_MODEL_CASH,
103 + random( 1000 ),
3,
GetPlayerInterior(playerid),
GetPlayerVirtualWorld(playerid),
10000);
case 3: CreateAutoPickup(
( pX + random( 5 ) ),
pY,
pZ,
PICKUP_MODEL_PARACHUTE,
1,
3,
GetPlayerInterior(playerid),
GetPlayerVirtualWorld(playerid),
10000);
case 4: CreateAutoPickup(
( pX + random( 5 ) ),
pY,
pZ,
PICKUP_MODEL_JETPACK,
1,
3,
GetPlayerInterior(playerid),
GetPlayerVirtualWorld(playerid),
10000);
}
}