Saringan_cs Posted December 2, 2011 Report Share Posted December 2, 2011 salut..deci asta E in Fs [pawn]// This is a comment// uncomment the line below if you want to write a filterscript#define FILTERSCRIPT#include <a_samp>new bus;#if defined FILTERSCRIPTpublic OnFilterScriptInit(){ ConnectNPC("Lorenzo", "dave"); bus = CreateVehicle(431,1785.0498,-1929.7227,13.4885,0.8961,21,42,9999999);}#elsemain(){ print("\n----------------------------------"); print(" Blank Gamemode by your name here"); print("----------------------------------\n");}#endifpublic OnPlayerSpawn(playerid){ if(IsPlayerNPC(playerid)) //Verifica daca playerul este NPC { new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname, sizeof(npcname)); //Luam numele NPCului if(!strcmp(npcname, "Lorenzo", true)) //Verificam daca numele NPCului este "NUME" { PutPlayerInVehicle(playerid, bus, 0); //Punem NPCul in vehicul } } return 1;}public OnPlayerDisconnect(playerid, reason){ return 1;}[/pawn]asta este FS . nume [pawn]npc[/pawn]acesta este in folderu npcmodes[pawn]// This is a comment// uncomment the line below if you want to write a filterscript#define FILTERSCRIPT#include <a_samp>new bus;#if defined FILTERSCRIPTpublic OnFilterScriptInit(){ ConnectNPC("Lorenzo", "dave"); bus = CreateVehicle(431,1785.0498,-1929.7227,13.4885,0.8961,21,42,9999999);}#elsemain(){ print("\n----------------------------------"); print(" Blank Gamemode by your name here"); print("----------------------------------\n");}#endifpublic OnPlayerSpawn(playerid){ if(IsPlayerNPC(playerid)) //Verifica daca playerul este NPC { new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname, sizeof(npcname)); //Luam numele NPCului if(!strcmp(npcname, "Lorenzo", true)) //Verificam daca numele NPCului este "NUME" { PutPlayerInVehicle(playerid, bus, 0); //Punem NPCul in vehicul } } return 1;}public OnPlayerDisconnect(playerid, reason){ return 1;}[/pawn] nume [pawn]Lorenzo[/pawn]si mai am fiseru dave.rec in [pawn]recordings[/pawn]deci intra pe svr numai ca mil da pe un camp .el trebuia sa conduca. cum rezolv?P.S Puteti da lock la celelate topicuri ale mele legate de npc Link to comment Share on other sites More sharing options...
IstuntmanI Posted December 3, 2011 Report Share Posted December 3, 2011 N-ai urmat bine tutorialul, fa-l iar si nu mai pune intrebarea asta de o mie de ori.Warn 20% pentru ca ai creeat topic cu asta de mai multe ori. Link to comment Share on other sites More sharing options...
Question
Saringan_cs
salut..
deci asta E in Fs [pawn]// This is a comment
// uncomment the line below if you want to write a filterscript
#define FILTERSCRIPT
#include <a_samp>
new bus;
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
ConnectNPC("Lorenzo", "dave");
bus = CreateVehicle(431,1785.0498,-1929.7227,13.4885,0.8961,21,42,9999999);
}
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
#endif
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid)) //Verifica daca playerul este NPC
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname)); //Luam numele NPCului
if(!strcmp(npcname, "Lorenzo", true)) //Verificam daca numele NPCului este "NUME"
{
PutPlayerInVehicle(playerid, bus, 0); //Punem NPCul in vehicul
}
}
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
[/pawn]
asta este FS . nume [pawn]npc[/pawn]
acesta este in folderu npcmodes
[pawn]// This is a comment
// uncomment the line below if you want to write a filterscript
#define FILTERSCRIPT
#include <a_samp>
new bus;
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
ConnectNPC("Lorenzo", "dave");
bus = CreateVehicle(431,1785.0498,-1929.7227,13.4885,0.8961,21,42,9999999);
}
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
#endif
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid)) //Verifica daca playerul este NPC
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname)); //Luam numele NPCului
if(!strcmp(npcname, "Lorenzo", true)) //Verificam daca numele NPCului este "NUME"
{
PutPlayerInVehicle(playerid, bus, 0); //Punem NPCul in vehicul
}
}
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
[/pawn] nume [pawn]Lorenzo[/pawn]
si mai am fiseru dave.rec in [pawn]recordings[/pawn]
deci intra pe svr numai ca mil da pe un camp .el trebuia sa conduca.
cum rezolv?
P.S Puteti da lock la celelate topicuri ale mele legate de npc
Link to comment
Share on other sites
1 answer to this question
Recommended Posts