mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 19:53:04 +08:00
[bot] Implement/match n_SetMyPos(...)
* Implement/match `CNetGame::SetMyPos(...)`
This commit is contained in:
+7
-2
@@ -259,8 +259,13 @@ static cell AMX_NATIVE_CALL n_GetMyPos(AMX *amx, cell *params)
|
||||
// native SetMyPos(Float:x, Float:y, Float:z)
|
||||
static cell AMX_NATIVE_CALL n_SetMyPos(AMX *amx, cell *params)
|
||||
{
|
||||
// TODO: n_SetMyPos
|
||||
return 0;
|
||||
if(!pNetGame->GetPlayerPool()) return 0;
|
||||
VECTOR vecPos;
|
||||
vecPos.X = amx_ctof(params[1]);
|
||||
vecPos.Y = amx_ctof(params[2]);
|
||||
vecPos.Z = amx_ctof(params[3]);
|
||||
pNetGame->SetMyPos(&vecPos);
|
||||
return 1;
|
||||
}
|
||||
|
||||
// native GetMyFacingAngle(&Float:ang)
|
||||
|
||||
Reference in New Issue
Block a user