04.02.2014, 13:51
Ive search alot topics about this problem, but nothing help me.
I try change the skin to my npc but it dont change, including i put spawnInfo and nothing happen, check it. this is the OnPlayerSpawn of my filtescript.
All work fine, the npc is put in the vehicle, but he dont wanna change the skin, someone can help me with this >.< this make me crazy.
I try change the skin to my npc but it dont change, including i put spawnInfo and nothing happen, check it. this is the OnPlayerSpawn of my filtescript.
PHP код:
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
new npcname[24];
GetPlayerName(playerid, npcname, 24);
if(!strcmp(npcname, "Unity_Driver", true))
{
SetPlayerSkin(playerid, 150);
PutPlayerInVehicle(playerid, Autobus_BusUnitySf, 0);
Attach3DTextLabelToPlayer(Text3d_BusUnitySf, playerid, 0.0, 0.0, 0.0);
}
}
return 1;
}