OnPlayerPickUp Problem
#1

Well...I did a Minigame with the Barrels:
When I enter in the Pickup( With the Vehicle ) had to Appear a Barrel in my car and the pickup disappear but It doesn't work, when I enter in the pickup the Barrel doesn't appear and the pickup is still here.. What should I do?

Pickup:
pawn Код:
if( pickupid == BarrelM1 )
    {
        if( GetPVarInt ( playerid, "Barrel" ) == 1 ) return SendClientMessage( playerid, - 1, "You have the Barrel man..." );
        Object = CreateObject( 1222, 1.1, 1.1, 1.1, 1.1, 1.1, 1.1 );
        AttachObjectToVehicle( Object, vehicleid, 0.119999, -1.029999, 0.300000, -15.000000, -90.000000, 0.000000 );
        SetPVarInt( playerid, "Barrel", 1 );
        DestroyPickup( BarrelM1 );
        BarrelM1 = CreatePickup( 1222, 23, RandomPickupSpawn[ randpik ][ 0 ], RandomPickupSpawn[ randpik ][ 1 ], RandomPickupSpawn[ randpik ][ 2 ], - 1 );
        SetVehicleToRespawn( vehicleid );
    }
Reply
#2

Anybody...?
Reply
#3

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)