Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:buygun(playerid, params[])
- {
- if(PlayerInfo[playerid][pGunLic] == 0) return SendClientMessage(playerid, COLOR_LGREEN, "Eroare: Nu ai licenta de arme. Cauta un instructor pentru a obtine licenta.");
- if(IsPlayerInRangeOfPoint(playerid, 20.0, 295.4687,-80.8111,1001.5156))
- {
- if(GetPlayerInterior(playerid) != 4) return SendClientMessage(playerid, COLOR_GREY, "Nu esti in Gun Shop.");
- ShowGunTextdraws(playerid);
- SetPlayerCameraPos(playerid, 295.6569, -131.7600, 1002.2218); // aici
- SetPlayerCameraLookAt(playerid, 296.0621, -132.2170, 1001.4126); // aici
- BuyGunS[playerid] = 0;
- new string[256];
- new wname[64];
- GetWeaponName(BuyGunD[BuyGunS[playerid]][0], wname, sizeof(wname));
- format(string, sizeof(string), "%s~n~~g~$%d", wname, BuyGunD[BuyGunS[playerid]][2]);
- PlayerTextDrawSetString(playerid, BGunTD[0], string);
- PlayerTextDrawShow(playerid, BGunTD[0]);
- DestroyPlayerObject(playerid, GunObject[playerid]);
- GunObject[playerid] = CreatePlayerObject(playerid, BuyGunD[BuyGunS[playerid]][1], 295.6587, -81.8218,1002.5341, 4.1418, 90.00000, 0.00000, 90.90000); // aici
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement