#1

I connected my NPC , but the problem is thet it doesn't do what in OnPlayerSpawn

PHP код:
if(IsPlayerNPC(playerid))
    {
        if(
strcmp(PlayerName(playerid), "BodyGuard") == 0)
        {
            
IsSpawned[playerid] =1;
            
SetPlayerSkin(playerid,163);
            
SetPlayerColor(playerid,COLOR_PINK);
            
SetPlayerPos(playerid1248.5563,-765.9691,92.2022);
            
ApplyAnimation(playerid"OTB""wtchrace_loop"4.1,1,0,0,1,1); // Crossed arms
            
print("[NPC SPAWN] BodyGuard 1 has beed spawned.");
        }
        return 
1;
    } 
I found it spawned at SFPD
Reply
#2

anyone please ?!
Reply
#3

anyone ?!
Reply
#4

Do you mean it doesn't spawn at the place you desired? Check your coordinates again.
Reply
#5

I checked and changed them to the right places , but it spawn in SFPD and then after some hours it leaves
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)