Guest User

1

a guest
Dec 17th, 2013
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. if (strcmp(cmd, "/dajvipa", true)==0) {
  2. if(!CanGiveVip(playerid))
  3. return SendClientMessage(playerid,COLOR_WHITE,"(i)Nieprawidlowa komenda");
  4.  
  5.  
  6. new dni, giveid;
  7. if(sscanf(params, "dd", dni, giveid))
  8. return SendClientMessage(playerid, BIALY, "/dajvipa [dni] [id gracza]");
  9.  
  10. if(!IsPlayerConnected(giveid))
  11. return SendClientMessage(playerid, CZERWONY, "Złe id brak tego gracza na serwerze!");
  12.  
  13.  
  14. if(GetPVarInt(giveid, "vip"))
  15. return SendClientMessage(playerid, CZERWONY, "Ten gracz posiada już rangę vip!");
  16.  
  17. if(dni == 0 || dni > MAX_DNI)
  18. return SendClientMessage(playerid, CZERWONY, "Zła ilośc dni, podaj wartość od 1 do "S_MAX_DNI" lub -1 dla nieskończonego");
  19.  
  20. new str[200];
  21. format(str, 200, COLOR_ADMIN "Admin %s (ID:%d) mianował cie VIP'em\n" POMARANCZOWY "podaj hasło dzięki któremu będziesz mógł się logować\nhasło musi mieć od 4-16 znaków\nwielkość liter będzie brana pod uwagę!", PlayerName(playerid), playerid);
  22. ShowPlayerDialog(giveid, DIALOG2, DIALOG_STYLE_PASSWORD, "Hasło Vip",str, "Ok", "Anuluj");
  23. SetPVarInt(giveid, "VIPDNI", dni);
  24. format(str, 128, "Wysłano prośbę o hasło do gracza %s(%d)", PlayerName(giveid), giveid);
  25. SendClientMessage(playerid, ZIELONY, str);
  26. return 1;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment