Guest User

Untitled

a guest
Jun 22nd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. if(strcmp(cmdtext,"/warn",true)==0)
  2. {
  3. if(InfoPlayer[playerid][LivelloAdmin]>0)
  4. {
  5. if(strlen(tmp))
  6. {
  7. if(!strlen(tmp2))tmp2="Nessun motivo";
  8. id=strval(tmp);
  9. if(IsPlayerConnected(id))
  10. {
  11. if(InfoPlayer[id][Warning]<MAX_WARNING)
  12. {
  13. GetPlayerName(playerid,nome,500);
  14. GetPlayerName(id,nome2,500);
  15. format(stringa,500,"[Dadmin]%s ha warnato %s MOTIVO:%s %d/%d",nome,nome2,tmp,InfoPlayer[id][Warning],MAX_WARNING);
  16. SendClientMessageToAll(COLOR_RED,stringa);
  17. print(stringa);
  18. InfoPlayer[playerid][Warning]++;
  19. }
  20. else
  21. {
  22. GetPlayerName(playerid,nome,500);
  23. GetPlayerName(id,nome2,500);
  24. format(stringa,500,"[Dadmin]%s ha warnato %s MOTIVO:%s %d/%d",nome,nome2,tmp,InfoPlayer[id][Warning],MAX_WARNING);
  25. SendClientMessageToAll(COLOR_RED,stringa);
  26. print(stringa);
  27. InfoPlayer[playerid][Warning]=0;
  28. }
  29. }
  30. else
  31. {
  32. SendClientMessage(playerid,COLOR_RED,"Questo player non è connesso");
  33. }
  34. }
  35. else
  36. {
  37. SendClientMessage(playerid,COLOR_RED,"Devi inserire un'id!");
  38. }
  39. }
  40. else
  41. {
  42. ErroriLivello(playerid,1);
  43. }
  44. return 1;
  45. }
Add Comment
Please, Sign In to add comment