Help, what is the problem? [NPC script]
#3

pawn Код:
#include <a_samp>
new HydraVehicle;
public OnFilterScriptInit()
{
    ConnectNPC ( "Hydra", "hydra_ls");
    print("\n--------------------------------------");
    print(" Bluebay Hydra (LS)-->NPC Betцltve!");
    print("--------------------------------------\n");
    HydraVehicle = CreateVehicle(520, 0.0, 0.0, 5.0, 0.0, 1, 1, 5000);
}

public OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid))
    {
        new npcname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, npcname, sizeof(npcname));
        if(!strcmp(npcname, "HydraVehicle", true));
        {
            PutPlayerInVehicle(playerid, HydraVehicle, 0);
        }
        return 1;
    }
    return 1;
}
Reply


Messages In This Thread
Help, what is the problem? [NPC script] - by Bluebay - 07.03.2011, 19:12
Re: Help, what is the problem? [NPC script] - by Stigg - 07.03.2011, 19:14
Re: Help, what is the problem? [NPC script] - by Ricop522 - 07.03.2011, 19:18
Re: Help, what is the problem? [NPC script] - by Bluebay - 07.03.2011, 19:18
Re: Help, what is the problem? [NPC script] - by Stigg - 07.03.2011, 19:19
Re: Help, what is the problem? [NPC script] - by Bluebay - 07.03.2011, 19:20

Forum Jump:


Users browsing this thread: 1 Guest(s)