Help - skin change...
#1

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...)
Reply
#2

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
Reply
#3

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)