Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerPickUpDynamicPickup(playerid, pickupid)
- {
- for(new i = 0; i < MAX_GIFTS; i++)
- {
- if(pickupid == Gift[i] && Picked[playerid] == 0)
- {
- switch(random(5))
- {
- case 0:
- {
- new paket1 = (5000);
- GivePlayerMoney(playerid, paket1);
- format( globalstring, sizeof( globalstring ), ""col_zeltamno"[Paketici]{FFFFFF}Paketic je pronadjen!");
- SendClientMessageToAll( -1, globalstring );
- SendClientMessage(playerid, -1, col_zeltamno "[PAKETIC]{FFFFFF}Cestitamo! U paketicu ste dobili $5000!");
- DestroyDynamicPickup(Gift[i]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement