Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new mPickup;// top of script
- //---- VV Inside OnPlayerCommandText
- if(strcmp(cmd, "/createmoneybag", true) == 0) {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- mPickup=CreatePickup(1212, 4, x, y, z, GetPlayerVirtualWorld(playerid)); // Create a pickup at the player's position
- SendClientMessage(playerid, 0xFFFFFFAA,"Pickup Created.");
- return 1;
- }
- // some wher ebelow of script!
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == mPickup)
- {
- GivePlayerMoney(playerid, 10000);//money ammount
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement