Tagname NPC please help :(
#1

how to create Tagname NPC ?
PHP код:
    //npcskin
    
if(IsPlayerNPC(playerid))
    {
        new 
botname [MAX_PLAYER_NAME];
        
GetPlayerName(playerid,botname,sizeof(botname));
     if(
strcmp(botname,"fvckyourec",true))
    {
       
SetPlayerSkin(playerid,61);
      }
   } 
Reply
#2

Take a look on this: Attach3DTextLabelToPlayer
__
pawn Код:
new Text3D:NPCTag[MAX_PLAYERS];

public OnPlayerConnect(playerid) {
if(IsPlayerNPC(playerid) {
new string[256], name[MAX_PLAYER_NAME];
format(string, sizeof(string), "Your NPC Name (Define it or something)");
NPCTag[playerid] = Create3DTextLabel(string, 0xFFFFFFFF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(NPCTag[playerid], playerid, 0.0, 0.0, 0.7); }
return 1;
}

public OnPlayerDisconnect(playerid) {
if(IsPlayerNPC(playerid) {
Destroy3DTextLabel(NPCTag[playerid]); }
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)