Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Bench(playerid, type)
- {
- pZagatovka[playerid] = type + 1;
- ClearAnimations(playerid);
- RemovePlayerAttachedObject(playerid, 0);
- RemovePlayerAttachedObject(playerid, 1);
- switch(type)
- {
- case 1:
- {
- DestroyObject(PlantObject[playerid]); // смотри сюда
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
- SendClientMessage(playerid, c_ARGON, "Ты разобрал содержимое коробки, теперь пройди за столы напротив для сбора макета оружия.");
- SetPlayerAttachedObject(playerid, 2 , 1376, 1,0.11,0.36,0.0,0.0,90.0);
- }
- case 2:
- {
- DestroyObject(PlantObject[playerid]); // и сюда
- RemovePlayerAttachedObject(playerid, 2);
- SetPlayerSpecialAction (playerid, SPECIAL_ACTION_NONE);
- SetPlayerAttachedObject(playerid, 0, pGunModel[playerid], 6);
- SetPlayerCheckpoint(playerid, 2919.5840,2772.5063,2805.6208, 1.5);
- SendClientMessage(playerid, c_ARGON, "Макет оружия собран, теперь отнеси его на склад.");
- }
- }
- PlantObject[playerid] = -1;
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement