Advertisement
Niko_boy

:D

Feb 1st, 2012
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.56 KB | None | 0 0
  1. new mPickup;// top of script
  2. //---- VV Inside OnPlayerCommandText
  3. if(strcmp(cmd, "/createmoneybag", true) == 0) {
  4.     new Float:x,Float:y,Float:z;
  5.     GetPlayerPos(playerid,x,y,z);
  6.  
  7.     mPickup=CreatePickup(1212, 4, x, y, z, GetPlayerVirtualWorld(playerid));  // Create a pickup at the player's position  
  8.         SendClientMessage(playerid, 0xFFFFFFAA,"Pickup Created.");
  9.         return 1;
  10.     }
  11. // some wher ebelow of script!
  12. public OnPlayerPickUpPickup(playerid, pickupid)
  13. {
  14.      if(pickupid == mPickup)
  15.         {
  16.     GivePlayerMoney(playerid, 10000);//money ammount
  17.     }
  18. return 1;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement