Advertisement
BPsys

heridas 1.0

Aug 21st, 2012
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.18 KB | None | 0 0
  1. #include <a_samp>
  2. /*
  3. ************************************************
  4. *****FS Creado por Kingworld - CCordoba*********
  5. **************184.22.115.52:9999****************
  6. ************************************************
  7. */
  8. public OnFilterScriptInit()
  9. {
  10.  print("\n /  |           /    |");
  11.  print("(___| ___  ___    ___| ___  ___");
  12.  print("|   )|___)|   )| |   )|   )|___");
  13.  print("|  / |__  |    | |__/ |__/| __/\n");
  14.  return 1;
  15. }
  16. public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
  17. {
  18.    new Float:CC;
  19.    GetPlayerArmour(damagedid,Float:CC);
  20.    if (Float:CC > 0) {
  21.         SetPlayerAttachedObject(damagedid, 0, 1242, 1, 0.819463, 0.000000, 0.037333, 0.000000, 90.717407, 162.956466, 1.000000, 1.000000, 1.000000 );
  22.         SetTimerEx("sacarobjeto", 2000, false, "i", damagedid);
  23.    } else {
  24.         SetPlayerAttachedObject(damagedid, 0, 1240, 1, 0.819463, 0.000000, 0.037333, 0.000000, 90.717407, 162.956466, 1.000000, 1.000000, 1.000000 );
  25.         SetTimerEx("sacarobjeto", 2000, false, "i", damagedid);
  26.    }
  27.    return 1;
  28. }
  29. forward sacarobjeto(playerid);
  30. public sacarobjeto(playerid)
  31. {
  32.        for(new i;i<5;i++) RemovePlayerAttachedObject(playerid,i);
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement