pawn Код:
if (strcmp("/comando", cmdtext, true) == 0)
{
SetPlayerPos(playerid, X, Y, Z);
return 1;
}
pawn Код:
AddPlayerClass(skin, X, Y, Z, Angulo, Arma1, municaoArma1, Arma2, municaoArma2, Arma3, municaoArma3);
No teu caso:
AddPlayerClass(0,
-313.4185,
1536.1903,
75.5625,155.9747,0,0,0,0,0,0); // drift
Vermelho: X
Verde: Y
Laranja: Z
pawn Код:
if (strcmp("/pd1", cmdtext, true) == 0)
{
SetPlayerPos(playerid, -313.4185, 1536.1903, 75.5625);
return 1;
}
Se quiseres tambйm podes utilizar o вngulo.
AddPlayerClass(0,-313.4185,1536.1903,75.5625,
155.9747,0,0,0,0,0,0); // drift
Lilбs: Вngulo.
Ficaria entгo no teu caso:
pawn Код:
if (strcmp("/pd1", cmdtext, true) == 0)
{
SetPlayerPos(playerid, -313.4185, 1536.1903, 75.5625);
SetPlayerFacingAngle(playerid, 155.9747);
return 1;
}