SA-MP Forums Archive
Creating a Player - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Creating a Player (/showthread.php?tid=645887)



Creating a Player { Please Help :( } - Cutiexoxo - 06.12.2017

Help me please i am trying to add a new character to my gamemode i've already seen it on a RP server ( like a SFPD they have a polce officer at the door that doesn't move of course how to add it please +Rep if Helped.

Example : That Pizza character

[URL="https://imgur.com/a/sgMBD"/URL]


Re: Creating a Player - Cutiexoxo - 06.12.2017

Please Helppp :/


Re: Creating a Player - Lucases - 06.12.2017

Use this https://sampwiki.blast.hk/wiki/CreateActor

Then apply any animation you want to the actor with this https://sampwiki.blast.hk/wiki/ApplyActorAnimation

So:

pawn Код:
new Actor;
 
public OnGameModeInit()
{
    Actor = CreateActor(ANY SKIN, X CORDS, Y CORDS , Z CORDS, FACING ANGLE);
}
In the Actor variable you stored its id, in the case you want to move it or apply an animation


Re: Creating a Player - Cutiexoxo - 06.12.2017

Thank you so much +rep it really really helped me