Building a object?
#1

Hello everybody,
I'm working on a job system (type of roleplay), unfortunately I am a low-level scripter, for that reason I wonder how to create on a object on the player?
Example:



What should I use?
I use these functions.. Than what?
Код:
  TogglePlayerControllable(playerid,0);
            ApplyAnimation(playerid,"BASEBALL","bat_part",4.1,1,1,0,0,0);
            GameTextForPlayer(playerid, "text...", 10000, 3);
Sorry for my English, I am Italian..
In any case I hop that someone help me!
Reply
#2

https://sampwiki.blast.hk/wiki/AttachObjectToPlayer
https://sampwiki.blast.hk/wiki/SetPlayerAttachedObject
https://sampwiki.blast.hk/wiki/RemovePlayerAttachedObject
https://sampwiki.blast.hk/wiki/AttachPlayerObjectToPlayer
Reply
#3

It's not working, help me?
Код:
public OnPlayerEnterCheckpoint(playerid)
{
     {
          if(Job[playerid] == 1)
	  {
	      DisablePlayerCheckpoint(playerid);
	      TogglePlayerControllable(playerid,0);
              ApplyAnimation(playerid,"BASEBALL","bat_part",4.1,1,1,0,0,0);
              GameTextForPlayer(playerid, "Building... please wait..", 10000, 3);
              SetPlayerAttachedObject(playerid, 0, 2096, 1, -0.094450, 0.431860, -0.009833, 355.990570, 85.995780, 0.000000, 1.000000, 1.000000, 1.000000);
              SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
              {
	      SetPlayerCheckpoint(playerid,-1292.4602,471.7754,7.1875, 3.0);
	      }
	      return 1;
	}
	DisablePlayerCheckpoint(playerid);
	SendClientMessage(playerid,0xffffffff,"Finish Job.");
	Job[playerid] =0;
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)