Advertisement
Guest User

Comanda /halloweenskin - Blaskowski (Happy Halloween 2016)

a guest
Oct 30th, 2016
605
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. //Adaugam asta la variabile
  2. halloweenskin[MAX_PLAYERS],
  3.  
  4. //Asta o adaugam la public OnPlayerConnect(playerid)
  5. halloweenskin[playerid] = 0;
  6.  
  7. //Si...in final, comanda.
  8. CMD:halloweenskin(playerid, params[])
  9. {
  10. if(gLogged[playerid] == 0)
  11. {
  12. if(PlayerInfo[playerid][pLanguage] == 1)
  13. {
  14. SendClientMessage(playerid, COLOR_LIGHT, "Tu nu esti logat si nu poti sa folosesti aceasta comanda!");
  15. }
  16. else
  17. {
  18. SendClientMessage(playerid, COLOR_LIGHT, "You need to login first.");
  19. }
  20. }
  21. if(halloweenskin[playerid] == 1) return SendClientMessage(playerid, COLOR_NEWBIE, "Folosesti deja skin-ul de halloween.");
  22. {
  23. if(halloweenskin[playerid] == 0)
  24. {
  25. halloweenskin[playerid] = 1;
  26. SetPlayerSkin(playerid, 264);
  27. SendClientMessage(playerid, COLOR_NEWBIE, "Acum esti un clown inspaimantator. Skin-ul se va schimba dupa respawn.");
  28. }
  29. }
  30. return 1;
  31. }
  32.  
  33. //prima parte cu glogged, la mine asa am si am facut si pt lb eng si pt ro...modificati voi.
  34. //Pentru a merge comanda dupa ce muriti sau primiti /spawn adaugati la comanda /spawn
  35. halloweenskin[playerid] = 0;
  36. //La death la fel...s.a.m.d.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement