11.12.2011, 17:01
pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
new
MoneyBag, // MoneyBagID
/*
You should use "MoneyBag" somewhere in your script,
because the result will be a warning 203: symbol is never used: "MoneyBag".
*/
pickupname;
main() {
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
public OnGameModeInit()
{
SetGameModeText("Blank Script");
/*
Change the parameters --> CreatePickup(model, type, Float:X, Float:Y, Float:Z, Virtualworld)
CreatePickup(1318, 2, 1503.3359, 1432.3585, 10.1191, -1); --> Is just an example.
*/
pickupname = CreatePickup(1318, 2, 1503.3359, 1432.3585, 10.1191, -1);
/*
Arrow = 1318
Type
23 Pickupable, but doesn't disappear on pickup.
2 Pickupable, respawns after some time.
*/
return 1;
}
public OnPlayerPickUpPickup(playerid,pickupid)
{
if(pickupid == pickupname) {
// Your function
}
return 1;
}