SA-MP Forums Archive
player legs sticking from car floor - 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: player legs sticking from car floor (/showthread.php?tid=422057)



player legs sticking from car floor - mastermax7777 - 12.03.2013

i see player head above roof and legs sticking from vehicle... how to fix this?

I use createvehicle at player's pos and then put him inside same vehicle

then vehiclepos to a nearby location


Re: player legs sticking from car floor - Shouty - 12.03.2013

Reinstal your SaMp. Is a visual bug I guess.


Re: player legs sticking from car floor - freddy smyth - 12.03.2013

Do you have any mods?


Re: player legs sticking from car floor - MP2 - 12.03.2013

Sounds like you're setting the player's skin while they are in a vehicle.


Re: player legs sticking from car floor - mastermax7777 - 13.03.2013

Quote:
Originally Posted by MP2
Посмотреть сообщение
Sounds like you're setting the player's skin while they are in a vehicle.
thanks brah..


Re: player legs sticking from car floor - Glad2BeHere - 13.03.2013

@mastermax when u set skin in vehicle that happens so u can get the player vehicleid b4 they chane skin in the vehicle and and then put them back in it

pawn Код:
/*
Using Zcmd + sscanf i made u a command showing an example of how to script
a change skin command to avoid such bug
*/


CMD:skin(playerid, params[])
{
  new skin;
  if(sscanf(params, "i", skin)) return SendClientMessage(playerid, -1, "/skin [id]");
  if(IsPlayerInAnyVehicle(playerid))
  {
    new v[2];
    v[0] = GetPlayerVehicleSeat(playerid);
    v[1] = GetPlayerVehicleId(playerid);
    SetPlayerSkin(playerid, skin);
    PutPlayerInVehicle(playerid, v[1], v[0]);
  }
  else
  {
    SetPlayerSkin(playerid, skin);
  }
  return 1;
}



Re: player legs sticking from car floor - mastermax7777 - 13.03.2013

who ever -repped me for saying brah.. stfu brah u med?..

and this guy^ trying to get posts? i already solve this kthxbye