daily pastebin goal
68%
SHARE
TWEET

Untitled

a guest May 16th, 2018 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if(Workpiece[playerid] == 1 && cexjob[playerid] == true)
  2. {
  3.     for(new i; i < sizeof(Tables); i ++)
  4.     {
  5.         if(IsPlayerInRaggeOfPoint(playerid, Tables[i][0], Tables[i][1], Tables[i][2]))
  6.         {
  7.             if(StateTable[i])
  8.             {
  9.                 ClearAnimations(playerid);
  10.                 SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
  11.                 new Float:x, Float:y, Float:z;
  12.                 GetPlayerPos(playerid, x,y,z);
  13.                 PlantObject[playerid] = CreateObject(2358, x, y+1, z+0.05, 360.0,0.0,0.0);
  14.                 SetPlayerFacingAngle(playerid, 0.0);
  15.                 SetPVarInt(playerid, "PLAYER_ANIM", 1);
  16.  
  17.                 Workpiece[playerid] = 0;
  18.                 pTimeJob[playerid] = 300;
  19.  
  20.                 RemovePlayerAttachedObject(playerid, 1);
  21.                 SetPlayerAttachedObject(playerid, 0, 18644, 5,0.078999,0.042999,-0.012999,-3.299995,0.000000,0.000000);
  22.                 SetPlayerAttachedObject(playerid, 1, 18635, 6);
  23.  
  24.                 ApplyAnimation(playerid, "INT_SHOP","shop_cashier", 4.1, 1, 1, 1, 1, 0, 1);
  25.                 SetTimerEx("KeyJob", 10000, false, "ii", playerid, 1);
  26.                 break;
  27.             }
  28.             else
  29.             {
  30.                 SendClientMessage(playerid, -1, "Данный стол занят!");
  31.                 break;
  32.             }
  33.         }
  34.     }
  35. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top