Szerző Téma: NPC jatekos jarmube rakasa  (Megtekintve 708 alkalommal)

NPC jatekos jarmube rakasa
« Dátum: 2015. január 14. - 08:54:33 »
0 Show voters
Sziasztok abban kernem segitsegeteket hogy nem sikerul jarmuvet adni az npc jatekosnak.
Hol kell pontosan adni ha leirnatok megkosszonem. Public gamemodeint es public Playerspawn-nal mar probaltam.
De nem sikerult valoszinuleg ezeknel a fuggvenyeknel kell:
 
stock LoadNPCs()
{
//csatlakozás
ConnectNPC(\"Jonathan_Hatcher\", \"jonathan\");
ConnectNPC(\"Lucas_Weasley\", \"bus\");
ConnectNPC(\"Sarah_Moore\", \"moore\");
ConnectNPC(\"Peter_Valaki\", \"horgaszcsavo\");
ConnectNPC(\"Lupin_Styles\", \"dealercsavo\");
ConnectNPC(\"Laurel_Peyser\", \"venasszony\");
ConnectNPC(\"Gerardo_Chipman\", \"gorkorcsolyas\");
ConnectNPC(\"Gilbert_Hogarth\", \"uszoember\");
ConnectNPC(\"Jake_West\", \"jakewest\");
ConnectNPC(\"Jalen_Rigney\", \"venember\");
ConnectNPC(\"repcsis_1\", \"repcsi_1\");
ConnectNPC(\"repcsis_2\", \"repcsi_2\");
ConnectNPC(\"repcsis_3\", \"repcsi_3\");
ConnectNPC(\"Busz_Sofor\", \"load\");
}

 

stock SetUpNPC(playerid)
{
    if(Compare(pName(playerid), \"Lucas_Weasley\"))
    {
        SetPlayerSkin(playerid, 57);
for(new i;i<MAX_VEHICLES;i++)
{
   if(Compare(vInfo[utoljara], \"Lucas_Weasley\"))
   {
      PutPlayerInVehicle(playerid, i, 0);
      break;
   }
}
    }
    if(Compare(pName(playerid), \"repcsis_1\"))
    {
        SetPlayerSkin(playerid, 57);
for(new i;i<MAX_VEHICLES;i++)
{
   if(Compare(vInfo[utoljara], \"repcsis_1\"))
   {
      PutPlayerInVehicle(playerid, i, 0);
      break;
   }
}
    }
    if(Compare(pName(playerid), \"repcsis_2\"))
    {
        SetPlayerSkin(playerid, 57);
for(new i;i<MAX_VEHICLES;i++)
{
   if(Compare(vInfo[utoljara], \"repcsis_2\"))
   {
      PutPlayerInVehicle(playerid, i, 0);
      break;
   }
}
    }
   
    if(Compare(pName(playerid), \"repcsis_3\"))
    {
        SetPlayerSkin(playerid, 57);
        for(new i;i<MAX_VEHICLES;i++)
        {
   if(Compare(vInfo[owner], \"repcsis_3\"))
   {
       PutPlayerInVehicle(playerid, i, 0);
       break;
   }
        }
    }
   
    if(Compare(pName(playerid), \"Busz_Sofor\"))
    {
        SetPlayerSkin(playerid, 57);
        for(new i;i<MAX_VEHICLES;i++)
        {
   if(Compare(vInfo[owner], \"Busz_Sofor\"))
   {
       PutPlayerInVehicle(playerid, johnVehicle, 0);
       break;
   }
        }
    }
   
    PreloadAnimLib(playerid,\"BOMBER\");
    PreloadAnimLib(playerid,\"RAPPING\");
    PreloadAnimLib(playerid,\"SHOP\");
    PreloadAnimLib(playerid,\"BEACH\");
    PreloadAnimLib(playerid,\"SMOKING\");
    PreloadAnimLib(playerid,\"FOOD\");
    PreloadAnimLib(playerid,\"ON_LOOKERS\");
    PreloadAnimLib(playerid,\"DEALER\");
    PreloadAnimLib(playerid,\"CRACK\");
    PreloadAnimLib(playerid,\"CARRY\");
    PreloadAnimLib(playerid,\"COP_AMBIENT\");
    PreloadAnimLib(playerid,\"PARK\");
    PreloadAnimLib(playerid,\"INT_HOUSE\");
    PreloadAnimLib(playerid,\"FOOD\" );
PreloadAnimLib(playerid,\"PED\" );
PreloadAnimLib(playerid,\"BOMBER\");
    PreloadAnimLib(playerid,\"RAPPING\");
    PreloadAnimLib(playerid,\"SHOP\");
    PreloadAnimLib(playerid,\"BEACH\");
    PreloadAnimLib(playerid,\"SMOKING\");
    PreloadAnimLib(playerid,\"FOOD\");
    PreloadAnimLib(playerid,\"ON_LOOKERS\");
    PreloadAnimLib(playerid,\"DEALER\");
    PreloadAnimLib(playerid,\"CRACK\");
    PreloadAnimLib(playerid,\"CARRY\");
    PreloadAnimLib(playerid,\"COP_AMBIENT\");
    PreloadAnimLib(playerid,\"PARK\");
    PreloadAnimLib(playerid,\"INT_HOUSE\");
    PreloadAnimLib(playerid,\"FOOD\" );
PreloadAnimLib(playerid,\"PED\" );
PreloadAnimLib(playerid,\"BOMBER\");
    PreloadAnimLib(playerid,\"RAPPING\");
    PreloadAnimLib(playerid,\"SHOP\");
    PreloadAnimLib(playerid,\"BEACH\");
    PreloadAnimLib(playerid,\"SMOKING\");
    PreloadAnimLib(playerid,\"FOOD\");
    PreloadAnimLib(playerid,\"ON_LOOKERS\");
    PreloadAnimLib(playerid,\"DEALER\");
    PreloadAnimLib(playerid,\"CRACK\");
    PreloadAnimLib(playerid,\"CARRY\");
    PreloadAnimLib(playerid,\"COP_AMBIENT\");
    PreloadAnimLib(playerid,\"PARK\");
    PreloadAnimLib(playerid,\"INT_HOUSE\");
    PreloadAnimLib(playerid,\"FOOD\" );
PreloadAnimLib(playerid,\"PED\" );
PreloadAnimLib(playerid,\"BOMBER\");
    PreloadAnimLib(playerid,\"RAPPING\");
    PreloadAnimLib(playerid,\"SHOP\");
    PreloadAnimLib(playerid,\"BEACH\");
    PreloadAnimLib(playerid,\"SMOKING\");
    PreloadAnimLib(playerid,\"FOOD\");
    PreloadAnimLib(playerid,\"ON_LOOKERS\");
    PreloadAnimLib(playerid,\"DEALER\");
    PreloadAnimLib(playerid,\"CRACK\");
    PreloadAnimLib(playerid,\"CARRY\");
    PreloadAnimLib(playerid,\"COP_AMBIENT\");
    PreloadAnimLib(playerid,\"PARK\");
    PreloadAnimLib(playerid,\"INT_HOUSE\");
    PreloadAnimLib(playerid,\"FOOD\" );
PreloadAnimLib(playerid,\"PED\" );
PreloadAnimLib(playerid,\"BOMBER\");
    PreloadAnimLib(playerid,\"RAPPING\");
    PreloadAnimLib(playerid,\"SHOP\");
    PreloadAnimLib(playerid,\"BEACH\");
    PreloadAnimLib(playerid,\"SMOKING\");
    PreloadAnimLib(playerid,\"FOOD\");
    PreloadAnimLib(playerid,\"ON_LOOKERS\");
    PreloadAnimLib(playerid,\"DEALER\");
    PreloadAnimLib(playerid,\"CRACK\");
    PreloadAnimLib(playerid,\"CARRY\");
    PreloadAnimLib(playerid,\"COP_AMBIENT\");
    PreloadAnimLib(playerid,\"PARK\");
    PreloadAnimLib(playerid,\"INT_HOUSE\");
    PreloadAnimLib(playerid,\"FOOD\" );
PreloadAnimLib(playerid,\"PED\" );
   
    if(Compare(pName(playerid), \"Jonathan_Hatcher\")) SetPlayerSkin(playerid, 44);
    if(Compare(pName(playerid), \"Sarah_Moore\")) SetPlayerSkin(playerid, 54);
    if(Compare(pName(playerid), \"Peter_Valaki\")) SetPlayerSkin(playerid, 78);
if(Compare(pName(playerid), \"Lupin_Styles\"))
{
    SetPlayerSkin(playerid, 29);
    LoopingAnim(playerid,\"DEALER\",\"DEALER_IDLE\",4.0,1,0,0,0,0);
    LoopingAnim(playerid,\"DEALER\",\"DEALER_IDLE\",4.0,1,0,0,0,0);
    LoopingAnim(playerid,\"DEALER\",\"DEALER_IDLE\",4.0,1,0,0,0,0);
    LoopingAnim(playerid,\"DEALER\",\"DEALER_IDLE\",4.0,1,0,0,0,0);
    LoopingAnim(playerid,\"DEALER\",\"DEALER_IDLE\",4.0,1,0,0,0,0);
}
if(Compare(pName(playerid), \"Laurel_Peyser\"))
{
    SetPlayerSkin(playerid, 197);
    LoopingAnim(playerid,\"PED\",\"SEAT_idle\", 4.0, 1, 0, 0, 0, 0);
    SetTimerEx(\"OnNPCUpdate\", 1000*30, 1, \"i\", playerid);
}
if(Compare(pName(playerid), \"Gerardo_Chipman\"))
{
    SetPlayerSkin(playerid, 99);
    SetTimerEx(\"OnNPCUpdate\", 1000*30, 1, \"i\", playerid);
}
if(Compare(pName(playerid), \"Gilbert_Hogarth\"))
{
    SetPlayerSkin(playerid, 45);
}
if(Compare(pName(playerid), \"Jake_West\"))
{
    SetPlayerSkin(playerid, 117);
    SetTimerEx(\"OnNPCUpdate\", 1000*30, 1, \"i\", playerid);
}
if(Compare(pName(playerid), \"Jalen_Rigney\"))
{
    SetPlayerSkin(playerid, 161);
    SetTimerEx(\"OnNPCUpdate\", 1000*30, 1, \"i\", playerid);
}
}

NPC jatekos jarmube rakasa
« Válasz #1 Dátum: 2015. január 14. - 12:29:07 »
0 Show voters
A szerveren leteszel neki járművet, majd SQL-be beírod a tulajdonoshoz az NPC nevét.

NPC jatekos jarmube rakasa
« Válasz #2 Dátum: 2015. január 14. - 12:31:04 »
0 Show voters
Koszonom. Megy a plussz

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal