Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CALLBACK troll(std::string params)
- {
- if (params.empty())
- return;
- int i;
- const char* cmd = "";
- sscanf(params.c_str(), "%s %i", &cmd, &i);
- float ppos[3];
- ppos[0] = SF->getSAMP()->getPlayers()->GetOnFootData(i)->fPosition[0];
- ppos[1] = SF->getSAMP()->getPlayers()->GetOnFootData(i)->fPosition[1];
- ppos[2] = SF->getSAMP()->getPlayers()->GetOnFootData(i)->fPosition[2];
- OnFootSync(ppos[0], ppos[1], ppos[2]);
- std::string sSendChat = formatString(cmd, i);
- SF->getSAMP()->getPlayers()->pLocalPlayer->Say((char*)sSendChat.c_str());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement