07.08.2016, 18:56
Hello! I have a Trash Collector job scripted, where if close to the checkpoint and object, you press "c" and it destroys the object, then attaches it to the player. I have selected the left hand bone but the offset is out. How can I set this right? I have no idea of how to find the coordinates.
Here is what happens:
Here is what happens:
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(PRESSED(KEY_CROUCH)) { if(Player[playerid][Job] == 2) { if(IsPlayerInRangeOfPoint(playerid, 2.0, -2098.5347, -117.4365, 34.8203)) // { if(Checkpoint[playerid] > -1) { DisablePlayerCheckpoint(playerid); Checkpoint[playerid] = -1; DestroyObject(object); object = SetPlayerAttachedObject(playerid, 6, 1264, 5); // here } } } } return 1; }