Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <open.mp>
- #include <streamer>
- #include <izcmd>
- main () {}
- new actor = INVALID_ACTOR_ID;
- public OnGameModeInit() {
- return 1;
- }
- COMMAND:createactor(playerid, params[]) {
- if(IsValidDynamicActor(actor)) DestroyDynamicActor(actor);
- actor = CreateDynamicActor(230, 0.0, 0.0, 4, 0.0, false, 100.0, 0);
- return 1;
- }
- COMMAND:moveactor(playerid, params[]) {
- ApplyDynamicActorAnimation(actor, "PED", "WALK_civi", 4.1, 1, 1, 1, 0, 0);
- return 1;
- }
- COMMAND:knife(playerid, params[]) {
- GivePlayerWeapon(playerid, WEAPON_KNIFE, 1);
- return 1;
- }
- public OnPlayerGiveDamageDynamicActor(playerid, actorid, Float:amount, weaponid, bodypart)
- {
- new Float:health;
- GetDynamicActorHealth(actorid, health);
- new str[144];
- format(str, sizeof str, "DYNactorid: %d || weaponid: %d || health: %f || amount: %f", actorid, weaponid, health, amount);
- SendClientMessage(playerid, -1, str);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement