Advertisement
Guest User

Untitled

a guest
Apr 30th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. CMD:setevent(playerid, params[])
  2. {
  3. new pl, m, rp, co;
  4. if(gLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_ERROR, "You are not logged in.");
  5. if(PlayerInfo[playerid][pAdmin] < 4) return SendClientMessage(playerid, COLOR_ERROR, "Your admin/helper level is not high enough to use this command.");
  6. if(sscanf(params,"iiii", pl, m, rp, co)) return SendClientMessage(playerid, COLOR_SYN,"Synthax:{FFFFFF} /setevent <players> <money> <respect> <Gold>");
  7. {
  8. EPlayers = pl;
  9. EMoney = m;
  10. ERespect = rp;
  11. ECoins = co;
  12. CheckEvent();
  13. format(gString, sizeof(gString), "Event set at %d players: $%d, %d RP and %d Gold.",EPlayers, EMoney, ERespect, ECoins);
  14. SendClientMessage(playerid, COLOR_SYN2, gString);
  15.  
  16. format(gString, sizeof(gString), "%s set a event at %d players: $%d, %d RP and %d Gold.",GetName(playerid), EPlayers, EMoney, ERespect, ECoins);
  17. CMDRaport(gString, 6, 0);
  18. }
  19. return 1;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement