NPC Problem!
#2

pawn Код:
// top of script

new Text3D:BotNameHere[MAX_PLAYERS];

// onplayerspawn

if(!strcmp(npcname, "BotNameHere", true))
{  
    new Float:X, Float:Y, Float:Z; // GetPlayerPos floats
    GetPlayerPos(playerid, X, Y, Z); // Getting player pos
    BotNameHere[playerid] = Create3DTextLabel("BotNameHere",0x00FFFFFF,X, Y, Z,35.0,1);
    Attach3DTextLabelToPlayer(BotNameHere[playerid],playerid,0,0,1.2);
    return 1;
}
Replace BotNameHere with your Bot name of course...
Reply


Messages In This Thread
NPC Problem! - by GeonMake - 25.04.2011, 22:17
Re: NPC Problem! - by grand.Theft.Otto - 25.04.2011, 22:28
Re: NPC Problem! - by GeonMake - 25.04.2011, 23:16

Forum Jump:


Users browsing this thread: 1 Guest(s)