Hello i have a small lottery system and this plugin gets points from player when he enter to play, the problem is get -500 and save -500 in file if player don't have 500 points, i don't want to give -500 in save file, i want if player don't have enough 500 can't join to play... any help? Thanks guys
Code:
public lotto (id) {
if(zagral[id]) {
client_print(0,print_chat,"[CSR] Play at every 5 minutes.");
return PLUGIN_HANDLED;
}
Points[id]-=500;
client_print(id,print_chat,"[CSR] You join, -500 points.");
set_task(60.0,"kumulacja",id);
Save(id);
return PLUGIN_CONTINUE;
}
__________________