[Ajuda] NPC invisнvel ?
#4

Quote:
Originally Posted by JhefTFJ
Посмотреть сообщение
Tudo ok e ainda continua sem o NPC no servidor. =/
PHP код:
public OnPlayerSpawn(playerid)
{
    if(
IsPlayerNPC(playerid))
    {
        new 
npcname[MAX_PLAYER_NAME];
        
GetPlayerName(playeridnpcnamesizeof(npcname));
        
//if(!strcmp(npcname, "Belck", true))
        
if(!strcmp(npcname"Belck"))
        {
            
SetPlayerSkin(playerid,281);
            
Attach3DTextLabelToPlayer(Belckplayerid0.00.00.2);
            
SetPlayerColor(playerid,0xFFFFFF00);
            
SetPlayerVirtualWorld(playerid0);//  seta o mundo virtual
            
SetPlayerInterior(playerid0);// seta o interior
            
SetTimerEx("FalaDeBelck",20000,true,"d",playerid);
        }
        return 
1;
    }
// teste esse comando
CMD:irnpc(playeridparams[])
{
    new 
id strval(params);
    if(
IsPlayerNPC(id))
    {
        new 
Float:xFloat:yFloat:z;
        
GetPlayerPos(playeridxyz);
        
SetPlayerPos(idxyz);
        
SetPlayerInterior(playeridGetPlayerInterior(id));
        
SetPlayerVirtualWorld(playeridGetPlayerVirtualWorld(id));
        new 
npcname[MAX_PLAYER_NAME], str[128];
        
GetPlayerName(idnpcnameMAX_PLAYER_NAME);
        
format(strsizeof(str), "Vocк foi atй o npc %s"npcname);
        
SendClientMessage(playerid, -1str);
        return 
true;
    }
    
SendClientMessage(playerid, -1"nгo й um npc");
    return 
true;

Reply


Messages In This Thread
NPC invisнvel ? - by JhefTFJ - 05.04.2017, 01:17
Respuesta: NPC invisнvel ? - by SammyJ - 05.04.2017, 01:58
Re: Respuesta: NPC invisнvel ? - by JhefTFJ - 05.04.2017, 15:47
Respuesta: Re: Respuesta: NPC invisнvel ? - by SammyJ - 05.04.2017, 16:30
Re: Respuesta: Re: Respuesta: NPC invisнvel ? - by JhefTFJ - 05.04.2017, 16:49
Re: NPC invisнvel ? - by JhefTFJ - 05.04.2017, 17:43

Forum Jump:


Users browsing this thread: 1 Guest(s)