NPC-s
#5

pawn Код:
//GameModelNit or something lol
    ConnectNPC("Training","TrainingGuy");
pawn Код:
public OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid))
    {
        new npcname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, npcname, sizeof(npcname));
        if(!strcmp(npcname, "Training", true))
        {
            SetPlayerPos(playerid, 302.4050,2067.1462,17.6406);
            SetPlayerFacingAngle(playerid, 109.0411);
            ApplyAnimation(playerid,"COP_AMBIENT","Coplook_loop",4.1,0,0,0,1,0);
        }
        return 1;
    }
    SetPlayerPos(playerid, 315.55523682,2059.98608398, 27); //just for example.
    return true;
}
Reply


Messages In This Thread
NPC-s - by Markx - 17.06.2011, 12:32
Re: NPC-s - by Stigg - 17.06.2011, 12:35
Re: NPC-s - by Markx - 17.06.2011, 12:41
Re: NPC-s - by Stigg - 17.06.2011, 13:15
Re: NPC-s - by Markx - 17.06.2011, 13:19
Re: NPC-s - by Stigg - 17.06.2011, 13:28
Re: NPC-s - by Markx - 17.06.2011, 13:31
Re: NPC-s - by Stigg - 17.06.2011, 13:52
Re: NPC-s - by Markx - 17.06.2011, 13:52
Re: NPC-s - by Markx - 17.06.2011, 14:41

Forum Jump:


Users browsing this thread: 1 Guest(s)