NPC enters a wagon not the locomotive.
#1

The title says everything.

Код:
public OnPlayerSpawn(playerid)
{
	if(IsPlayerNPC(playerid))
	{
	    new nimi[MAX_PLAYER_NAME];
	    GetPlayerName(playerid, nimi, MAX_PLAYER_NAME);
	    if (!strcmp(nimi, "Rongijuht_Toomas", true))
	    {
	        SetPlayerSkin(playerid, 253);
	        for (new i; i < MAX_VEHICLES; i++)
	        {
	            if (GetVehicleModel(i) == 538 && AutoInfo[i][vNPC] != 1)
	            {
	                PutPlayerInVehicle(playerid, i, 0);
	                AutoInfo[i][vNPC] = 1;
	                SetVehicleParamsEx(i, 1, 1, 0, 0, 0, 0, 0);
	            }
	        }
	    }
	    return 1;
	}
        return 1;
 }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)