Guest User

Untitled

a guest
Mar 6th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. CMD:admin(playerid,params[])
  2. {
  3. if(playerDB[playerid][mutelaikas]>0) return InfoBoxForPlayer(playerid,"~r~Jūs esate užtildytas.");
  4. if(!strlen(params))
  5. {
  6. SendClientMessage(playerid,Melyna,"Prisijungusi administracija");
  7. new zin[256] = "Prisijungusi administracija:";
  8. new name[MAX_PLAYER_NAME], x;
  9. for(new i = 0; i <MAX_PLAYERS; i++)
  10. {
  11. if(IsPlayerConnected(i) && playerDB[i][adminlvl] != 0)
  12. SendClientMessage(playerid, -i,"[NAUDOJIMAS] /admin - (Tekstas)");
  13. {
  14. x++;
  15. GetPlayerName(i,name,MAX_PLAYER_NAME);
  16. format(zin,256,"%i. %s.",x,name);
  17. SendClientMessage(playerid,0xFFDC00FF,zin);
  18. }
  19. }
  20. return 1;
  21. }
  22. new zin[200],name[MAX_PLAYER_NAME];
  23. GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  24. format(zin,sizeof(zin),"{ff0000}[A.INFO] {ffffff}%s {ff0000}praneša: {ffffff}%s",name,params);
  25. for(new i = 0; i <MAX_PLAYERS; i++)
  26. {
  27. if(IsPlayerConnected(i) && playerDB[i][adminlvl] != 0)
  28. {
  29. SendClientMessage(i,0xFFDC00FF,zin);
  30. }
  31. }
  32. SendClientMessage(playerid, -1, "* Prisijungusią administraciją matysi parašęs {ff0000}/online");
  33. SendClientMessage(playerid,0xFFDC00FF,zin);
  34. return 1;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment