#tryinclude a_npcmain(){}
ConnectNPC(\"npcneve\", \"fájlneve\");
if(!strcmp(playername, \"npcneve\")) { PutPlayerInVehicle(playerid, vehicleid, 1);//anyósülésre teszi.. return 1;}
#include <a_samp>#pragma tabsize 0new vehicleid;main() { } public OnGameModeInit(){ ConnectNPC(\"lol\", \"sit\"); print(\"NPC Felcsatlakozva\");ShowPlayerMarkers(0);ShowNameTags(1);SetWorldTime(17);// GREEN CLASSESAddPlayerClass(162,20.0,25.0,0.0,348.9788,0,0,31,400,29,400); vehicleid = CreateVehicle(420, 20.0, 0.0, 20.0, 0.0, 1, 0, 60);return 1;}public OnPlayerSpawn(playerid){ if ( IsPlayerNPC ( playerid )) print (\"NPC Lekerdezese\"); { print(\"NPC eszlelve\"); new npcname [ MAX_PLAYER_NAME ]; GetPlayerName ( playerid, npcname, sizeof ( npcname ) );print(\"GetPlayerName\"); if ( !strcmp ( npcname, \"lol\")) { print(\"NPC Neve helyes\"); PutPlayerInVehicle(playerid, vehicleid, 1); print(\"NPC-t az autoba raktuk\"); } }return 1;}
#include <a_samp>main() {}new vehicleid;public OnGameModeInit() {ConnectNPC(\"terminator\", \"terminatornpc\");AddPlayerClass(1, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);vehicleid = AddStaticVehicle(585,2796.4453,-1580.4756,10.5128,270.1887,1, 1);return 1;}public OnPlayerSpawn(playerid) {if(IsPlayerNPC(playerid)) {new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, MAX_PLAYER_NAME); if(!strcmp(name, \"terminator\")) { print(\"terminator lespawnolt, és jármûbe helyezve!\"); PutPlayerInVehicle(playerid, vehicleid, 1); }}return 1;}
#tryinclude <a_npc>main() {}