Guest User

Untitled

a guest
Mar 7th, 2014
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. forward LaikasVip(playerid);
  2. public LaikasVip(playerid)
  3. {
  4. if(pDB[playerid][Superadmin]){ return 1;}
  5. if(pDB[playerid][VIP]){ return 1;}
  6. if(pDB[playerid][vlaikas]==0){ return 1;}
  7. pDB[playerid][vlaikas] --;
  8. if(pDB[playerid][vlaikas]>=1){ return 1;}
  9. SendClientMessage(playerid,COL_YELLOW,"Tavo VIP laikas baigesi!");
  10. pDB[playerid][VIP] = false;
  11. pDB[playerid][vlaikas]=0;
  12. new name[MAX_PLAYER_NAME],file[128];
  13. GetPlayerName(playerid,name,sizeof(name));
  14. format(file,sizeof(file),"saves/user/%s.ini",name);
  15. INI_WriteInt(file,"VIP",pDB[playerid][VIP]);
  16. return 1;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment