#include <a_samp>new cash; public OnGameModeInit(){ cash = CreatePickup(1242, 2, 2273.4231,578.8379,7.7888, -1); return 1;}public OnPlayerPickUpPickup(playerid, pickupid){ if(pickupid == cash) GivePlayerMoney(playerid,10000); return 1;}
#include <a_samp> new cash; public OnGameModeInit() { cash = CreatePickup(1242, 14, 2273.4231,578.8379,7.7888, -1); return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == cash) GivePlayerMoney(playerid,10000); return 1; }
#include < a_samp > new Pickup; public OnGameModeInit( ){ Pickup = CreatePickup( 1242, 2, 2273.4231, 578.8379, 7.7888, -1 ); // OnFilterScriptInit() - OnGameModeInit() eljárásnak nincsen visszatérési értéke}public OnPlayerPickUpPickup( playerid, pickupid ){ if( pickupid == Pickup ) { GivePlayerMoney( playerid, 10000 ); } return 1;}
Nem jó de minek kellet 14 re írni?
És hallod Gábor ha mongyuk azt akarom h ne pénzt adjon hanem ültessen egy másik kocsiba?Azt hogyan lehet megoldani?Elõre is thx
PutPlayerInVehicle( playerid, CreateVehicle( 541, 0.0, 0.0, 0.0, 0.0, random( 126 ), random( 126 ), -1 ), 0 );