Advertisement
Sem_Loreann

Untitled

May 16th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. if(Workpiece[playerid] == 1 && cexjob[playerid] == true)
  2. {
  3. for(new i; i < sizeof(Tables); i ++)
  4. {
  5. if(StateTable[i] == false) return SendClientMessage(playerid, -1, "Данный стол занят!");
  6. ClearAnimations(playerid);
  7. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
  8. new Float:x, Float:y, Float:z;
  9. GetPlayerPos(playerid, x,y,z);
  10. PlantObject[playerid] = CreateObject(2358, x, y+1, z+0.05, 360.0,0.0,0.0);
  11. SetPlayerFacingAngle(playerid, 0.0);
  12. SetPVarInt(playerid, "PLAYER_ANIM", 1);
  13.  
  14. Workpiece[playerid] = 0;
  15. pTimeJob[playerid] = 300;
  16.  
  17. RemovePlayerAttachedObject(playerid, 1);
  18. SetPlayerAttachedObject(playerid, 0, 18644, 5,0.078999,0.042999,-0.012999,-3.299995,0.000000,0.000000);
  19. SetPlayerAttachedObject(playerid, 1, 18635, 6);
  20.  
  21. ApplyAnimation(playerid, "INT_SHOP","shop_cashier", 4.1, 1, 1, 1, 1, 0, 1);
  22. SetTimerEx("KeyJob", 10000, false, "ii", playerid, 1);
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement