Advertisement
Sem_Loreann

Untitled

May 16th, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. if(IsAWorkbench(playerid) && Workpiece[playerid] == 1 && cexjob[playerid] == true)
  2. {
  3. ClearAnimations(playerid);
  4. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
  5. new Float:x, Float:y, Float:z;
  6. GetPlayerPos(playerid, x,y,z);
  7. PlantObject[playerid] = CreateObject(2358, x, y+1, z+0.05, 360.0,0.0,0.0);
  8. SetPlayerFacingAngle(playerid, 0.0);
  9. SetPVarInt(playerid, "PLAYER_ANIM", 1);
  10.  
  11. Workpiece[playerid] = 0;
  12. pTimeJob[playerid] = 300;
  13.  
  14. RemovePlayerAttachedObject(playerid, 1);
  15. SetPlayerAttachedObject(playerid, 0, 18644, 5,0.078999,0.042999,-0.012999,-3.299995,0.000000,0.000000);
  16. SetPlayerAttachedObject(playerid, 1, 18635, 6);
  17.  
  18. ApplyAnimation(playerid, "INT_SHOP","shop_cashier", 4.1, 1, 1, 1, 1, 0, 1);
  19. SetTimerEx("KeyJob", 10000, false, "ii", playerid, 1);
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement