Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- main(){}
- new ActorCJ;
- public OnGameModeInit () {
- ActorCJ = CreateActor(0, 0.0, 0.0, 3.0, 0.0);//We create the actor.
- ApplyActorAnimation(ActorCJ, "DEALER", "Dealer_idle", 0, 0, 0, 0, 0, 0);//Previously we load animation to the actor.
- ApplyActorAnimation(ActorCJ, "DEALER", "Dealer_idle", 4.1, 1, 0, 0, 0, 0);//We apply animation to the actor.
- }
- public OnPlayerConnect(playerid) {
- ApplyAnimation(playerid, "DEALER", "Dealer_idle", 0.0, 0, 0, 0, 0, 0);//Previously we load animation to the player.
- SetTimerEx("Timer", 100, false, "d", playerid);
- }
- public OnPlayerSpawn(playerid){
- SetPlayerPos(playerid, 3.0, 3.0, 3.0);
- SetPlayerFacingAngle(playerid, 135);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- forward Timer(playerid);
- public Timer(playerid){
- SpawnPlayer(playerid);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement