Advertisement
Guest User

Untitled

a guest
Jul 1st, 2010
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. /* [FS][FS] Icone de Vida Encima do Player (Good For A/D) */
  2. /***********************************************/
  3. #include <a_samp>
  4. #include <a_objects>
  5. #define TEMPO 1000
  6. /***********************************************/
  7. new Desativado[MAX_PLAYERS];
  8. new object;
  9. new object2;
  10. /***********************************************/
  11. public OnPlayerCommandText(playerid, cmdtext[])
  12. {
  13. /* DESATIVAR */
  14. if(!strcmp(cmdtext, "/desativar", true))
  15. {
  16. Desativado[playerid] = 10;
  17. return 1;
  18. }
  19. /* ATIVAR */
  20. if(!strcmp(cmdtext, "/ativar", true))
  21. {
  22. Desativado[playerid] = 0;
  23. return 1;
  24. }
  25. return 0;
  26. }
  27. /***********************************************/
  28. public OnPlayerDamageStatusUpdate(playerid)
  29. {
  30. if(Desativado[playerid] == 0)
  31. {
  32. object2 = CreateObject(2053, 0, 0, 0, 0, 0, 0);
  33. AttachObjectToPlayer(object, playerid, 0, 0, 1.35, 0, 0, 0);
  34. }else{
  35. object = CreateObject(2053, 0, 0, 0, 0, 0, 0);
  36. AttachObjectToPlayer(object, playerid, 0, 0, 0.95, 0, 0, 0);
  37. }
  38. }
  39. /***********************************************/
  40. {
  41. DestroyObject(objectid);
  42. }
  43. forward OnPlayerDamageStatusUpdate(playerid);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement