Advertisement
ReshiramZekrom

Untitled

Nov 5th, 2023
1,599
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.97 KB | None | 0 0
  1. #include <open.mp>
  2. #include <streamer>
  3.  
  4. #include <izcmd>
  5.  
  6. main () {}
  7.  
  8. new actor = INVALID_ACTOR_ID;
  9.  
  10. public OnGameModeInit() {
  11.  
  12.    
  13.  
  14.     return 1;
  15. }
  16.  
  17. COMMAND:createactor(playerid, params[]) {
  18.  
  19.     if(IsValidDynamicActor(actor)) DestroyDynamicActor(actor);
  20.     actor = CreateDynamicActor(230, 0.0, 0.0, 4, 0.0, false, 100.0, 0);
  21.     return 1;
  22. }
  23.  
  24. COMMAND:moveactor(playerid, params[]) {
  25.  
  26.     ApplyDynamicActorAnimation(actor, "PED", "WALK_civi", 4.1, 1, 1, 1, 0, 0);
  27.     return 1;
  28. }
  29.  
  30. COMMAND:knife(playerid, params[]) {
  31.  
  32.     GivePlayerWeapon(playerid, WEAPON_KNIFE, 1);
  33.     return 1;
  34. }
  35.  
  36.  
  37. public OnPlayerGiveDamageDynamicActor(playerid, actorid, Float:amount, weaponid, bodypart)
  38. {
  39.     new Float:health;
  40.     GetDynamicActorHealth(actorid, health);
  41.  
  42.     new str[144];
  43.     format(str, sizeof str, "DYNactorid: %d || weaponid: %d || health: %f || amount: %f", actorid, weaponid, health, amount);
  44.     SendClientMessage(playerid, -1, str);
  45.  
  46.     return 1;
  47. }
  48.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement