Creating a stationary 'npc'?
#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


Messages In This Thread
Creating a stationary 'npc'? - by doggeh - 05.07.2012, 14:31
Re: Creating a stationary 'npc'? - by Deal-or-die - 05.07.2012, 14:43
Re: Creating a stationary 'npc'? - by doggeh - 05.07.2012, 15:53
Re: Creating a stationary 'npc'? - by Deal-or-die - 05.07.2012, 15:56
Re: Creating a stationary 'npc'? - by doggeh - 05.07.2012, 16:28
Re: Creating a stationary 'npc'? - by doggeh - 06.07.2012, 12:56
Re: Creating a stationary 'npc'? - by Roko_foko - 06.07.2012, 12:58
Re: Creating a stationary 'npc'? - by doggeh - 06.07.2012, 13:07
Re: Creating a stationary 'npc'? - by Roko_foko - 06.07.2012, 13:13
Re: Creating a stationary 'npc'? - by Grim_ - 06.07.2012, 13:14

Forum Jump:


Users browsing this thread: 6 Guest(s)