Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == Server[MoneyThrow][2])
- {
- if(playerid != Server[MoneyThrow][0])
- {
- GivePlayerCash(playerid,Server[MoneyThrow][1]);
- format(text2,sizeof(text2),"( ! ) MONEY THROW: %s(%d) has picked up the money throw. Amount: %d!",Info[playerid][Name],playerid,Server[MoneyThrow][1]);
- SendClientMessageToAll(-1, text2);
- DestroyPickup(Server[MoneyThrow][2]);
- Server[MoneyThrow][2] = -1;
- Server[MoneyThrow][0] = INVALID_PLAYER_ID;
- pLoop()
- {
- if(IsPlayerSpawned(i))
- {
- RemovePlayerMapIcon(i,52);
- }
- }
- }
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment