13.02.2011, 01:02
NPC working in another gamemode not work in my gamemode
i know reason but how to fix it
problem is "Register dialog box block the npc"
Sry for my bad english
what wrong here
i know reason but how to fix it
problem is "Register dialog box block the npc"
Sry for my bad english
Код:
#include <a_samp> #include <core> #include <float> new glob0; public OnFilterScriptInit() { print("\n-----------------"); print(" NPC's byJonas_Boa"); print("-------------------\n"); ConnectNPC(244, 284); glob0 = CreateVehicle(400, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000); return 1; } public OnFilterScriptExit() { return 1; } public OnPlayerConnect(playerid) { return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) { new var0[24]; GetPlayerName(playerid, var0, 24); if(!strcmp(var0, "[NPC]Anna", true)) { PutPlayerInVehicle(playerid, glob0, 0); } return 1; } return 1; } public OnPlayerDeath(playerid, killerid, reason) { return 1; } public OnVehicleSpawn(vehicleid) { return 1; } public OnVehicleDeath(vehicleid, killerid) { return 1; } public OnPlayerText(playerid, text) { return 1; } public OnPlayerCommandText(playerid, cmdtext) { if(!strcmp("/mycommand", cmdtext, true, 10)) { return 1; } return 0; } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { return 1; } public OnPlayerEnterCheckpoint(playerid) { return 1; } public OnPlayerLeaveCheckpoint(playerid) { return 1; } public OnPlayerEnterRaceCheckpoint(playerid) { return 1; } public OnPlayerLeaveRaceCheckpoint(playerid) { return 1; } public OnRconCommand(cmd) { return 1; } public OnPlayerRequestSpawn(playerid) { return 1; } public OnObjectMoved(objectid) { return 1; } public OnPlayerObjectMoved(playerid, objectid) { return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { return 1; } public OnVehicleMod() { return 1; } public OnVehiclePaintjob() { return 1; } public OnVehicleRespray() { return 1; } public OnPlayerSelectedMenuRow(playerid, row) { return 1; } public OnPlayerExitedMenu(playerid) { return 1; } public OnPlayerInteriorChange() { return 1; } public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { return 1; } public OnRconLoginAttempt() { return 1; } public OnPlayerUpdate() { return 1; } public OnPlayerStreamIn() { return 1; } public OnPlayerStreamOut() { return 1; } public OnVehicleStreamIn() { return 1; } public OnVehicleStreamOut() { return 1; } public OnDialogResponse() { return 1; } public OnPlayerClickPlayer() { return 1; }