#include <a_samp> |
new mypickup; |
public OnGameModeInit() |
mypickup = CreatePickup(model, type, Float:X, Float:Y, Float:Z, Virtualworld); |
public OnGameModeInit() { mypickup = CreatePickup(1239, 1, 1864.2164,-2513.4922,13.5469, -1); //Virtual World (-1) is all worlds return 1; } |
1210 - Briefcase 1212 - Money 1239 - Information 1240 - Heart 1241 - Adrenaline pill 1242 - Armor 1247 - Bribe 1248 - Gta 3 logo 1252 - Grey bomb 1253 - Photo Op 1254 - rampage (single skull) 1313 - two player rampage (skulls) 1272 - blue house 1273 - green house 1274 - dollar 1275 - blue t-shirt 1276 - tiki 1277 - save disk 1279 - drug bundle 1313 - 2 skulls icon 1314 - 2 player 1316 - Corona (textures missing) 1317 - Checkpoint (textures missing) 1318 - White arrow (pointing down) 1559 - Interior enter/exit diamond 1582 - Pizza Box 2894 - Madd Doggs rhyme book |
0 The pickup does not display. 1 Not pickupable, exists all the time. (Suitable for completely scripted pickups using OnPlayerPickUpPickup) 2 Pickupable, respawns after some time. 3 Pickupable, respawns after death 4 Disappears shortly after created (perhaps for weapon drops?) 5 Disappears shortly after created (perhaps for weapon drops?) 8 Pickupable, but has no effect. Disappears automatically. 11 Blows up a few seconds after being created (bombs?) 12 Blows up a few seconds after being created. 13 Slowly decends to the ground. 14 Pickupable, but only when in a vehicle. Falls through objects made with CreateObject, etc. 15 Pickupable, respawns after death 19 Pickupable, but has no effect (information icons?) 22 Pickupable, respawns after death. 23 Pickupable, but doesn't disappear on pickup. |
public OnPlayerPickUpPickup(playerid, pickupid) |
if(pickupid == mypickup) GameTextForPlayer(playerid, "~B~Hello!!!", 5000,5); |
mypickup = CreatePickup(model, type, Float:X, Float:Y, Float:Z, Virtualworld);
CreatePickup(model, type, Float:X, Float:Y, Float:Z, Virtualworld);