ayuda TogglePlayerControllable
#1

buenas, estoy haciendo un registro textdraws me funciona bien uando de doy enpesar me sigue saliendo el puntero sigo inmovil miren aka ta la funcion

Quote:

if(clickedid == textDraw[12])
{
TextDrawHideForPlayer(playerid, textDraw[0]);
TextDrawHideForPlayer(playerid, textDraw[1]);
TextDrawHideForPlayer(playerid, textDraw[2]);
TextDrawHideForPlayer(playerid, textDraw[3]);
TextDrawHideForPlayer(playerid, textDraw[4]);
TextDrawHideForPlayer(playerid, textDraw[5]);
TextDrawHideForPlayer(playerid, textDraw[6]);
TextDrawHideForPlayer(playerid, textDraw[7]);
TextDrawHideForPlayer(playerid, textDraw[8]);
TextDrawHideForPlayer(playerid, textDraw[9]);
TextDrawHideForPlayer(playerid, textDraw[10]);


SetCameraBehindPlayer(playerid);
CancelSelectTextDraw(playerid);
SetPlayerPos(playerid, 1714.8337, -1910.2286, 13.4602);
TogglePlayerControllable(playerid, false);
ApplyAnimation(playerid, "ped", "SEAT_down", 4.000000, 0, 0, 0, 1, 0);
ApplyAnimation(playerid, "ped", "SEAT_down", 4.000000, 0, 0, 0, 1, 0);
SendClientMessage(playerid, -1, "{008C00}[Mensaje]{FFFFFF} Bienvenido a los santos");

}
}
return 1;

}

ayudemen )
Reply
#2

TogglePlayerControllable es en true para que se pueda mover.
Reply
#3

sigue igual
Reply
#4

Es el ApplyAnimation:

Quote:

ApplyAnimation(playerid, "ped", "SEAT_down", 4.000000, 0, 0, 0, 1, 0);
ApplyAnimation(playerid, "ped", "SEAT_down", 4.000000, 0, 0, 0, 1, 0);

Ese 1 es el parбmetro para congelar o no al jugador (debe estar en 0).
https://sampwiki.blast.hk/wiki/ApplyAnimation
Reply


Forum Jump:


Users browsing this thread: