SA-MP Forums Archive
Help - skin change... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help - skin change... (/showthread.php?tid=542298)



Help - skin change... - Fjclip99 - 18.10.2014

Hello!
I have a command /duty for admins to go on duty...
When the admin types that command it changes his skin. Now the problem is when a player types the command in vehicle, it changes the skin, but he is standing in the vehicle(not the same animation.)
I know i can make so he can't type the command in vehicle, but is it possible so his animation will change, depend on where he is(in vehicle, on foot...)


Re: Help - skin change... - Neil. - 18.10.2014

Quote:

If a player's skin is set when they are crouching , in a vehicle, or performing certain animations, they will become frozen or otherwise glitched. This can be fixed by using TogglePlayerControllable.

https://sampwiki.blast.hk/wiki/SetPlayerSkin


Re: Help - skin change... - ReD_HunTeR - 18.10.2014

Try this?
pawn Код:
CMD:aduty(playerid, params[])
{
   new Float:x, Float:y, Float:z, vehicleid;
   vehicleid = GetPlayerVehicleID(playerid);
   SetPlayerSkin(playerid, 217);
   SetPlayerPos(playerid, x, y, z+3);
   PutPlayerInVehicle(playerid, vehicleid, 0);
   return 1;
}