19.09.2009, 08:02
I need help installing this on an RP server. I have no clue how to add this to the script. Anyone can help me out a bit?
if(IsPlayerNPC(playerid))
{
//do stuff
}
else
{
//do more stuff
}
Originally Posted by Brendan_Thomson
pawn Код:
|
public OnPlayerConnect(playerid) { if (IsPlayerNPC(playerid)) { SendClientMessageToAll(0x00000000,"A new NPC connected!"); return 1; } }
Originally Posted by Dark_Kostas
This is going to Gamemode.
|
Originally Posted by Dark_Kostas
How was your OnPlayerConnect?
|
Originally Posted by V1ceC1ty
NPC scripts do not need to be anywhere near your GM script.
|
public OnPlayerConnect(playerid) { if (IsPlayerNPC(playerid)) { SendClientMessageToAll(0x00000000,"A new NPC connected!"); return 1; } }