Advertisement
Mango_Knife

Untitled

Mar 20th, 2014
406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. public UInt32 spawnEntity(String ModelName, Single X, Single Y, Single Z, Single Yaw = 0, Single Pitch = 0, Single Roll = 0)
  2. {
  3. UInt32 Ent = G_Spawn();
  4. Console.Write(Ent + "\n");
  5. DEX.Extension.WriteFloat((Ent + 0x134), X);
  6. DEX.Extension.WriteFloat((Ent + 0x13C), Y);
  7. DEX.Extension.WriteFloat((Ent + 0x138), Z);
  8. DEX.Extension.WriteFloat((Ent + 0x140), Yaw);
  9. DEX.Extension.WriteFloat((Ent + 0x144), Pitch);
  10. DEX.Extension.WriteFloat((Ent + 0x148), Roll);
  11. RPC.Call(Offsets.G_SetModel, Ent, ModelName);
  12. RPC.Call(Offsets.SP_Script_Model, Ent);
  13. Thread.Sleep(20);
  14. return Ent;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement