Advertisement
Kuddy

[FS/Cod] Boia assassina xD

Aug 15th, 2012
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.76 KB | None | 0 0
  1. #include <a_samp>
  2. //#include <mapandreas>
  3. #include <zcmd>
  4. #include <sscanf>
  5.  
  6. new KoB, perseguida;
  7. public OnFilterScriptInit()
  8. {
  9.     KoB = CreateObject(1243, 2043.06, 1354.30, 7.37,   0.00, 0.00, 0.00);
  10.     SetTimer("UpdateNPC", 500, true);
  11.     return 1;
  12. }
  13. forward UpdateNPC();
  14. public UpdateNPC()
  15. {
  16.     new Float:px, Float:py, Float:pz;
  17.     GetPlayerPos(perseguida, px, py, pz);
  18.     //MapAndreas_FindZ_For2DCoord(px, py, pz);
  19.     MoveObject(KoB, px, py, pz-1, 2);
  20.     return 1;
  21. }
  22.  
  23.  
  24. public OnFilterScriptExit()
  25. {
  26.     DestroyObject(KoB);
  27.     return 1;
  28. }
  29.  
  30. CMD:perseguir(playerid, params[])
  31. {
  32.     new perseguirid;
  33.     if(sscanf(params, "D",perseguirid)) return SendClientMessage(playerid,-1,"Use: /v [carid]");
  34.     return perseguida = perseguirid;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement