Advertisement
Guest User

Untitled

a guest
Aug 28th, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. CMD:buygun(playerid, params[])
  2. {
  3. if(PlayerInfo[playerid][pGunLic] == 0) return SendClientMessage(playerid, COLOR_LGREEN, "Eroare: Nu ai licenta de arme. Cauta un instructor pentru a obtine licenta.");
  4. if(IsPlayerInRangeOfPoint(playerid, 20.0, 295.4687,-80.8111,1001.5156))
  5. {
  6. if(GetPlayerInterior(playerid) != 4) return SendClientMessage(playerid, COLOR_GREY, "Nu esti in Gun Shop.");
  7. ShowGunTextdraws(playerid);
  8. SetPlayerCameraPos(playerid, 295.6569, -131.7600, 1002.2218); // aici
  9. SetPlayerCameraLookAt(playerid, 296.0621, -132.2170, 1001.4126); // aici
  10. BuyGunS[playerid] = 0;
  11. new string[256];
  12. new wname[64];
  13. GetWeaponName(BuyGunD[BuyGunS[playerid]][0], wname, sizeof(wname));
  14. format(string, sizeof(string), "%s~n~~g~$%d", wname, BuyGunD[BuyGunS[playerid]][2]);
  15. PlayerTextDrawSetString(playerid, BGunTD[0], string);
  16. PlayerTextDrawShow(playerid, BGunTD[0]);
  17.  
  18. DestroyPlayerObject(playerid, GunObject[playerid]);
  19. GunObject[playerid] = CreatePlayerObject(playerid, BuyGunD[BuyGunS[playerid]][1], 295.6587, -81.8218,1002.5341, 4.1418, 90.00000, 0.00000, 90.90000); // aici
  20. }
  21. return 1;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement