Today I Joined A Server,,,, ip:- 193.192.59.62:27015 Sorry For Ip Spamming.. And I Saw A Plugin Like That..---- If Players Type /Loto Players Get A Chance To Win 500 Ammo ..But Its Not Works To All Its Works On A Single Player In A Map... Randomly Get 500 Ammo Pack <------< Can AnyOne Can Make It For Me ..Please
public event_new_round() { new iPlayers[32], iPlayerCount, i, player get_players(iPlayers, iPlayerCount, "a") for(i = 0; i < iPlayerCount; i++) { player = iPlayers[i] g_bFreeAP[player] = false } }
public Free_AP(id) { if(g_bFreeAP[id]) { client_print(id, print_chat, "[ZP] Chance already being used!") } else { new iRand = random_num(1,100) switch(iRand) { case 1 .. 5: { client_print(id, print_chat, "[ZP] Sorry, please try again in next round!") } case 6 .. 49: { client_print(id, print_chat, "[ZP] Congrats, free 100AP!") zp_set_user_ammo_packs(id, zp_get_user_ammo_packs(id) + 100) } case 50 .. 79: { client_print(id, print_chat, "[ZP] Congrats, free 150AP!") zp_set_user_ammo_packs(id, zp_get_user_ammo_packs(id) + 150) } case 80 .. 100: { zp_set_user_ammo_packs(id, zp_get_user_ammo_packs(id) + 500) client_print(id, print_chat, "[ZP] Congrats, free 500AP!") } }