NPC joins and leaves the server
#1

PHP код:
public OnPlayerRequestClass(playeridclassid

    if(
IsPlayerNPC(playerid)) 
    { 
        new 
npc_name[24]; 
        
GetPlayerName(playerid,npc_name,sizeof(npc_name)); 
        if(!
strcmp(npc_name,"Pablas",false)) SetSpawnInfo(playerid, -1,17, -1448.2899171494.7772226.099233,0.0, -1, -1, -1, -1, -1, -1); 
    }    
    return 
1

PHP код:
21:13:59] [npc:joinPablas has joined the server (0:127.0.0.1
[
21:14:00] [npc:partPablas has left the server (0:2
Reply
#2

Show your ConnectNPC line. Is there a valid recording file with the rec. name you used?
Reply
#3

PHP код:
loadNpc()
{
    
ConnectRNPC("Pablas");
    return 
1;

I need him just for standing in one place nothing more. So I think i didin't need a record.
Reply
#4

OnPlayerConnect: If(IsNPC(playerid)) return spawnplayer(playerid.....
Reply
#5

Didin't worked.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)