Guest User

Untitled

a guest
Nov 5th, 2014
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.44 KB | None | 0 0
  1. if(CP[playerid] == 5003)
  2. {
  3.     new string[128];
  4.     if(IsRockLoded[playerid]) return SendClientMessage(playerid, COLOR_GREY, "You already have a rock.");
  5.     IsRockLoded[playerid] = 1;
  6.     Factoryrocks --;
  7.     DisablePlayerCheckpoint(playerid);
  8.     SetPlayerCheckpoint(playerid, 2334.2183,-2287.3057,13.5469, 1);
  9.     Delete3DTextLabel(Factorytext);
  10.     format(factorystring1, sizeof(string), "Factory : %d crates left.",Factoryrocks);
  11.     Factorytext = Create3DTextLabel(factorystring1,COLOR_YELLOW,2333.4788,-2305.4575,13.5469, 70 , 0 , 1);
  12.     SetPlayerAttachedObject( playerid, 9, 1575, 1, -0.064613, 0.520760, 0.000000, 0.000000, 84.217391, 0.000000, 1.000000, 1.000000, 1.000000 );
  13.     ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 1, 1, 0);
  14.     CP[playerid] = 5004;
  15.    
  16.     return 1;
  17. }
  18. else if(CP[playerid] == 5004)
  19. {
  20.     new string[128];
  21.     if(!IsRockLoded[playerid]) return SendClientMessage(playerid, COLOR_GREY, "You have no rocks in your hand.");
  22.     IsRockLoded[playerid] = 0;
  23.     WCraterocks += 1;
  24.     DisablePlayerCheckpoint(playerid);
  25.     SetPlayerCheckpoint(playerid, 2335.0559,-2304.5198,13.5469, 1);
  26.     Delete3DTextLabel(WCratetext);
  27.     format(wcratestring1, sizeof(string), "Factory : %d gun crates left.", WCraterocks);
  28.     WCratetext = Create3DTextLabel(wcratestring1,COLOR_YELLOW,2335.4771,-2284.5957,14.4755, 70 , 0 , 1);
  29.     RemovePlayerAttachedObject(playerid, 9);
  30.     ClearAnimations(playerid);
  31.     TogglePlayerControllable(playerid, 1);
  32.     CP[playerid] = 5003;
  33.    
  34.     return 1;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment