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?
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..
Код:
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;
}