U pitanju su kamp kucice, MW mod, kada se kupi kamp kucica ne sacuva je u bazu, ali izadje, u chat da sam je kupio, da li ima ko rijesenje ?
https://imgur.com/a/25pGCZw
CMD:kupiprikolicu(playerid)
{
if(!IsPlayerInRangeOfPoint(playerid, 3.0, 843.9586,1086.0125,1075.1802)) return SendErrorMessage( playerid , "Niste na mestu kupovine prikolica (u CAMP SHOP-u)!");
if( IsPlayerHaveAPrivateVehicle( playerid ) == -1) return SendErrorMessage(playerid,"Ne posedujete nijedno vozilo!");
if(PlayerInfo[ playerid ][ xCampKucicaID ] != -1) return SCM(playerid,-1,""col_white"Vec posedujete kamp kucicu!");
if( PlayerInfo[ playerid ][ xNovac ] < 500000 ) return SendErrorMessage( playerid, "Nemate dovoljno novca ( 500.000$ ) .");
KGEyes_GivePlayerMoney( playerid, -500000);
new IDCampTr = NextCampTr();
ctInformacije = IDCampTr;
PlayerInfo[ playerid ][ xCampKucicaID ] = IDCampTr;
PlayerInfo[ playerid ][ xCampKucicaSqlID ] = ctInformacije;
sql_user_update_intandmoney( playerid, "camptrailer_id", PlayerInfo[ playerid ][ xCampKucicaSqlID ] );
ctInformacije[ IDCampTr ][ ctVlasnik_SqlID ] = PlayerInfo[ playerid ][ xID ];
ctInformacije = 1;
ctInformacije = IDCampTr;
new poz = random(sizeof(RandomCampShopSpawn));
ctInformacije = RandomCampShopSpawn;
ctInformacije = RandomCampShopSpawn;
ctInformacije = RandomCampShopSpawn;
ctInformacije = RandomCampShopSpawn;
CampTrailerVehicle = KGEyes_CreateVehicle(607,ctInformacije,ctInformacije,ctInformacije,ctInformacije,1,1,2400);
CampTrailerObject = CreateDynamicObject(3171, 0,0,0,0,0,0,80 );
AttachDynamicObjectToVehicle(CampTrailerObject, CampTrailerVehicle, 0.084999, -1.900115, -1.144999, -3.014999, 0.000000, 178.890090);
new Float: xPos,
Float: yPos,
Float: zPos;
GetVehicleRelativePos(CampTrailerVehicle, xPos, yPos, zPos, diff_x, diff_y);
ctInformacije = xPos;
ctInformacije = yPos;
ctInformacije = zPos + 0.37 ;
ctInformacije = 0.0;
ctInformacije = 0.0;
ctInformacije = 0.0;
ctInformacije = 2512.9333;
ctInformacije = -1729.1531;
ctInformacije = 778.6371;
ctInformacije[ IDCampTr ][ ctTypeTxt ] = 0;
ctInformacije[ IDCampTr ][ ctSecurity ] = 0;
ctInformacije[ IDCampTr ][ ctTypeInt ] = 0;
ctInformacije[ IDCampTr ][ ctTypeNeon ] = 0;
ctInformacije[ IDCampTr ][ ctSef ] = 0;
ctInformacije[ IDCampTr ][ ctFrizider ] = 0;
ctInformacije[ IDCampTr ][ ctNovac ] = 0;
ctInformacije[ IDCampTr ][ ctPice ] = 0;
ctInformacije[ IDCampTr ][ ctLocked ] = 0;
ctInformacije[ IDCampTr ][ ctTypeTrailer ] = 0;
ctInformacije[ IDCampTr ][ ctGun ][ 0 ] = 0;
ctInformacije[ IDCampTr ][ ctGun ][ 1 ] = 0;
ctInformacije[ IDCampTr ][ ctGun ][ 2 ] = 0;
ctInformacije[ IDCampTr ][ ctGun ][ 3 ] = 0;
ctInformacije[ IDCampTr ][ ctAmmo ][ 0 ] = 0;
ctInformacije[ IDCampTr ][ ctAmmo ][ 1 ] = 0;
ctInformacije[ IDCampTr ][ ctAmmo ][ 2 ] = 0;
ctInformacije[ IDCampTr ][ ctAmmo ][ 3 ] = 0;
strmid( ctInformacije[ IDCampTr ][ ctOwner ], ImeIgraca( playerid ), 0, strlen( ImeIgraca( playerid ) ), MAX_PLAYER_NAME );
sql_create_camptrailer( playerid, IDCampTr);
Camp_Refresh( IDCampTr, 1);
SendInfoMessage(playerid, "Cestitamo, kupili ste kamp kucicu!");
return 1;
}
Pomoc oko Kamp Kucice
277
pregleda
2
postova
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava
