10.07.2013, 05:35
I download this https://sampforum.blast.hk/showthread.php?tid=412666 , the NPC join but it leave again
OnPlayerSpawn
server logs
OnPlayerSpawn
PHP код:
if(IsPlayerRNPC(playerid))
{
if(strcmp(PlayerName(playerid), "BodyGuard") == 0)
{
SetRNPCPos(playerid, 1241.5619,-766.9536,92.1005);
ApplyAnimation(playerid,"PAULNMAC", "wank_loop", 1.800001, 1, 0, 0, 1, 600);
IsSpawned[playerid] =1;
SetPlayerSkin(playerid,163);
SetPlayerColor(playerid,COLOR_PINK);
print("[NPC SPAWN] BodyGuard 1 has beed spawned.");
}
return 1;
}
PHP код:
[07:38:35] ARNPC Debug: OnPlayerDisconnect hook called for NPC
[07:38:35] [npc:part] BodyGuard has left the server (1:0)