Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(CP[playerid] == 5003)
- {
- new string[128];
- if(IsRockLoded[playerid]) return SendClientMessage(playerid, COLOR_GREY, "You already have a rock.");
- IsRockLoded[playerid] = 1;
- Factoryrocks --;
- DisablePlayerCheckpoint(playerid);
- SetPlayerCheckpoint(playerid, 2334.2183,-2287.3057,13.5469, 1);
- Delete3DTextLabel(Factorytext);
- format(factorystring1, sizeof(string), "Factory : %d crates left.",Factoryrocks);
- Factorytext = Create3DTextLabel(factorystring1,COLOR_YELLOW,2333.4788,-2305.4575,13.5469, 70 , 0 , 1);
- SetPlayerAttachedObject( playerid, 9, 1575, 1, -0.064613, 0.520760, 0.000000, 0.000000, 84.217391, 0.000000, 1.000000, 1.000000, 1.000000 );
- ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 1, 1, 0);
- CP[playerid] = 5004;
- return 1;
- }
- else if(CP[playerid] == 5004)
- {
- new string[128];
- if(!IsRockLoded[playerid]) return SendClientMessage(playerid, COLOR_GREY, "You have no rocks in your hand.");
- IsRockLoded[playerid] = 0;
- WCraterocks += 1;
- DisablePlayerCheckpoint(playerid);
- SetPlayerCheckpoint(playerid, 2335.0559,-2304.5198,13.5469, 1);
- Delete3DTextLabel(WCratetext);
- format(wcratestring1, sizeof(string), "Factory : %d gun crates left.", WCraterocks);
- WCratetext = Create3DTextLabel(wcratestring1,COLOR_YELLOW,2335.4771,-2284.5957,14.4755, 70 , 0 , 1);
- RemovePlayerAttachedObject(playerid, 9);
- ClearAnimations(playerid);
- TogglePlayerControllable(playerid, 1);
- CP[playerid] = 5003;
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment