Creating a stationary 'npc'?
#1

Fellow scripters,

I want to put a few stationary characters in my server, but i really cant find out what functions i need to use for it.
I thought there was a function to do something like this, but i could not find it...

Thanks in advance,
A newbie scripter
Reply
#2

Have you tried creating a NPC using
This Tutorial?
Reply
#3

Do i really have to use a actual NPC for that?
I think its a bit.. overkill, but if there are no other ways...
Reply
#4

Hmm.. I think there are skin/model objects. pretty sure the ids of the objects are the same as the skin ids. You could try that if that is what you're after.
Reply
#5

Just tried that, but its not working.

It does create some object (You can bump against it), but its invisible.
Reply
#6

I have created one now with the NPC tutorial, but this NPC has a blip on the mini-map, and the other NPC (Which was already in the gamemode) does not ahve this blip, how can i remove it for that other NPC too?
Reply
#7

ShowPlayerMarkers(0) under your OnGameModeInit
Reply
#8

I still want to be able to see other players on the mini-map, just not the NPC which i added..
Reply
#9

https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer
pawn Код:
new BOT_ID;
public OnPlayerConnect(playerid)
{
    new Name[MAX_PLAYER_NAME];
    if(IsPlayerNPC(playerid){
        GetPlayerName(Name,sizeof(Name),playerid)
        if(strcmp(Name,"BOT_NAME")==0)BOT_ID=playerid;
        }
    SetPlayerMarkerForPlayer(playerid,BOT_ID,0x00000000);
//rest code
Reply
#10

EDIT:

^ Dude be fast.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)