30.01.2010, 03:06
ok we got it work that he logged in...
code:
public OnPlayerConnect(playerid)
{
if (IsPlayerNPC(playerid))
{
OnPlayerCommandText(playerid,"/login bot"); //-- the NPC logs in with password "bot" WORKING
SendClientMessageToAll(0x00000000,"An NPC connected!"); //---- this message dont shows.. =(
return 1;
}
new plname[MAX_PLAYER_NAME];
we created a rec file and so on like in this thread: http://forum.sa-mp.com/index.php?topic=119947.0
but now the NPC stands there and respawns like every 30-60 secs...
any idea?
code:
public OnPlayerConnect(playerid)
{
if (IsPlayerNPC(playerid))
{
OnPlayerCommandText(playerid,"/login bot"); //-- the NPC logs in with password "bot" WORKING
SendClientMessageToAll(0x00000000,"An NPC connected!"); //---- this message dont shows.. =(
return 1;
}
new plname[MAX_PLAYER_NAME];
we created a rec file and so on like in this thread: http://forum.sa-mp.com/index.php?topic=119947.0
but now the NPC stands there and respawns like every 30-60 secs...
any idea?