| 1234567891011121314151617181920212223242526272829 |
- #define RECORDING "mynpc" //This is the filename of your recording without the extension.
- #define RECORDING_TYPE 1 //1 for in vehicle and 2 for on foot.
- #include <a_samp>
- #include <a_npc>
- main(){}
- public OnFilterScriptInit()
- {
- print("my filterscript");
- ConnectNPC("MyFirstNPC","mynpc");
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
- {
- new npcname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
- if(!strcmp(npcname, "MyFirstNPC", true)) //Checking if the NPC's name is MyFirstNPC
- {
-
- }
- return 1;
- }
- //Other stuff for normal players goes here!
- return 1;
- }
|