Niko_boy

:///

Feb 1st, 2012
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4. new mPickup;
  5. #include <a_samp>
  6.  
  7. #if defined FILTERSCRIPT
  8. #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
  9.  
  10. public OnFilterScriptInit()
  11. {
  12.     print("\n--------------------------------------");
  13.     print(" Blank Filterscript by your name here");
  14.     print("--------------------------------------\n");
  15.     return 1;
  16. }
  17.  
  18. public OnFilterScriptExit()
  19. {
  20.     return 1;
  21. }
  22.  
  23. #else
  24.  
  25. main()
  26. {
  27.     print("\n----------------------------------");
  28.     print(" Blank Gamemode by your name here");
  29.     print("----------------------------------\n");
  30. }
  31.  
  32. #endif
  33.  
  34. public OnGameModeInit()
  35. {
  36.     // Don't use these lines if it's a filterscript
  37.     SetGameModeText("Blank Script");
  38.     AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  39.     return 1;
  40. }
  41.  
  42. public OnGameModeExit()
  43. {
  44.     return 1;
  45. }
  46.  
  47. public OnPlayerRequestClass(playerid, classid)
  48. {
  49.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  50.     SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  51.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  52.     return 1;
  53. }
  54.  
  55. public OnPlayerConnect(playerid)
  56. {
  57.     return 1;
  58. }
  59.  
  60. public OnPlayerDisconnect(playerid, reason)
  61. {
  62.     return 1;
  63. }
  64.  
  65. public OnPlayerSpawn(playerid)
  66. {
  67.     return 1;
  68. }
  69.  
  70. public OnPlayerDeath(playerid, killerid, reason)
  71. {
  72.     return 1;
  73. }
  74.  
  75. public OnVehicleSpawn(vehicleid)
  76. {
  77.     return 1;
  78. }
  79.  
  80. public OnVehicleDeath(vehicleid, killerid)
  81. {
  82.     return 1;
  83. }
  84.  
  85. public OnPlayerText(playerid, text[])
  86. {
  87.     return 1;
  88. }
  89. dcmd_die(const playerid,const params[]) {
  90.  
  91.    #pragma unused params
  92.        
  93.         new Float:x,Float:y,Float:z;
  94.         GetPlayerPos(playerid,x,y,z);
  95.  
  96.         mPickup=CreatePickup(1212, 4, x, y, z, GetPlayerVirtualWorld(playerid));  // Create a pickup at the player's position
  97.                 SendClientMessage(playerid, 0xFFFFFFAA,"Pickup Created.");
  98.                 return 1;
  99. }
  100.  
  101. public OnPlayerCommandText(playerid, cmdtext[])
  102. {  
  103. dcmd(die,3,createmoneybag);
  104.         return 1;
  105. }
  106.  
  107. // some wher ebelow of script!
  108. public OnPlayerPickUpPickup(playerid, pickupid)
  109. {
  110.      if(pickupid == mPickup)
  111.         {
  112.     GivePlayerMoney(playerid, 1000000);//money ammount
  113.     }
  114. return 1;
  115. }
Advertisement
Add Comment
Please, Sign In to add comment