Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. void CALLBACK troll(std::string params)
  2. {
  3. if (params.empty())
  4. return;
  5. int i;
  6. const char* cmd = "";
  7.  
  8. sscanf(params.c_str(), "%s %i", &cmd, &i);
  9.  
  10.  
  11. float ppos[3];
  12.  
  13. ppos[0] = SF->getSAMP()->getPlayers()->GetOnFootData(i)->fPosition[0];
  14. ppos[1] = SF->getSAMP()->getPlayers()->GetOnFootData(i)->fPosition[1];
  15. ppos[2] = SF->getSAMP()->getPlayers()->GetOnFootData(i)->fPosition[2];
  16. OnFootSync(ppos[0], ppos[1], ppos[2]);
  17.  
  18. std::string sSendChat = formatString(cmd, i);
  19.  
  20. SF->getSAMP()->getPlayers()->pLocalPlayer->Say((char*)sSendChat.c_str());
  21.  
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement