Advertisement
Marlborox

Untitled

Jan 17th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. CMD:checkraport(playerid, params[])
  2. {
  3. if(PlayerInfo[playerid][pLeader] == 0) return SCM(playerid, -1, "You are not a leader/admin");
  4. {
  5. if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, -1, "You are not a leader/admin");
  6. {
  7. if(playerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}Error: Player not connected.");
  8. new id, string[256], string2[256], nume[25];
  9. GetPlayerName(playerid, nume, sizeof(nume));
  10. if(sscanf(params, "u",id)) return SendClientMessage(playerid, 0xFFFFFFFF, "{FF9900}Scrie: {33CCFF}/checkraport <playerid>");
  11. format(string, sizeof(string), "Raportul de activitate a lui %s este %d/%d.", nume,PlayerInfo[playerid][pCommands], RaportPoints(playerid));
  12. format(string2, sizeof(string2), "%s are %d zile in factiune.", nume,PlayerInfo[playerid][pFactionTime]);
  13. SCM(playerid, COLOR_YELLOW, string);
  14. SCM(playerid, COLOR_YELLOW, string2);
  15. SCM(playerid, COLOR_YELLOW, "Daca jucatorul nu are raportul terminat dupa 7 zile, acesta va primi uninvite.");
  16. }
  17. }
  18. return 1;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement