Advertisement
Niko_boy

:P

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