Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <a_npc>
- #include <v_NPC>
- new npcfly;
- public OnFilterScriptInit()
- {
- npcfly = vNPC_CreateNPC("TestPilot", "at400_ls", 287, false, 0xFF0000FF, 577, 1, 1);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- vNPC_OnPlayerConnect(playerid);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- vNPC_OnPlayerSpawn(playerid);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/connectnpc", cmdtext, true, 10) == 0)
- {
- vNPC_ConnectNPC(npcfly);
- return 1;
- }
- if (strcmp("/disconnectnpc", cmdtext, true, 10) == 0)
- {
- vNPC_DisconnectNPC(npcfly);
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement