Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward LaikasVip(playerid);
- public LaikasVip(playerid)
- {
- if(pDB[playerid][Superadmin]){ return 1;}
- if(pDB[playerid][VIP]){ return 1;}
- if(pDB[playerid][vlaikas]==0){ return 1;}
- pDB[playerid][vlaikas] --;
- if(pDB[playerid][vlaikas]>=1){ return 1;}
- SendClientMessage(playerid,COL_YELLOW,"Tavo VIP laikas baigesi!");
- pDB[playerid][VIP] = false;
- pDB[playerid][vlaikas]=0;
- new name[MAX_PLAYER_NAME],file[128];
- GetPlayerName(playerid,name,sizeof(name));
- format(file,sizeof(file),"saves/user/%s.ini",name);
- INI_WriteInt(file,"VIP",pDB[playerid][VIP]);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment