13.03.2013, 02:05
@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;
}