Drift NPC Tutorial please help..
#9

that is very nice what you made but..

Thats how i have it with co-ords and so on:

Quote:

public KickNPCOnPoint()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerToPoint(5.0,i,-429.1989,1412.5939,31)) // Change with your coordonates where you want the NPC to be kicked
{
if(IsPlayerNPC(i))
{
new drifter1[MAX_PLAYER_NAME];
GetPlayerName(i, drifter1, sizeof(drifter1)); //Getting the NPC's name.
if(!strcmp(drifter1, "drifter1", true)) //Checking if the NPC's name is ....
{
Kick(i);
}
}
}
}
}
return 1;
}

but when npc joins he gets kicked same second not even reaching the point :/

and i got 3 warnings too:

D:\Server\server\gamemodes\1337.pwn(13346) : warning 206: redundant test: constant expression is non-zero
D:\Server\server\gamemodes\1337.pwn(13350) : warning 219: local variable "drifter1" shadows a variable at a preceding level
D:\Server\server\gamemodes\1337.pwn(134) : warning 204: symbol is assigned a value that is never used: "npcdrifttimer"
Reply


Messages In This Thread
Drift NPC Tutorial please help.. - by audifan00 - 10.11.2010, 00:56
Re: Drift NPC Tutorial please help.. - by Kwarde - 10.11.2010, 05:16
Re: Drift NPC Tutorial please help.. - by audifan00 - 10.11.2010, 09:32
Re: Drift NPC Tutorial please help.. - by audifan00 - 10.11.2010, 09:35
Re: Drift NPC Tutorial please help.. - by audifan00 - 10.11.2010, 09:53
Re: Drift NPC Tutorial please help.. - by Kwarde - 10.11.2010, 12:52
Re: Drift NPC Tutorial please help.. - by Rainbow_Six - 10.11.2010, 13:15
Re: Drift NPC Tutorial please help.. - by TyreXel - 10.11.2010, 13:24
Re: Drift NPC Tutorial please help.. - by audifan00 - 10.11.2010, 13:48
Re: Drift NPC Tutorial please help.. - by audifan00 - 10.11.2010, 13:55

Forum Jump:


Users browsing this thread: 2 Guest(s)