Jump to content

BuNiCu-RP

Membru
  • Content Count

    166
  • Joined

  • Last visited

  • Days Won

    5

BuNiCu-RP last won the day on October 26 2017

BuNiCu-RP had the most liked content!

Community Reputation

27 Binişor

6 Followers

About BuNiCu-RP

  • Rank
    Membru avansat
  • Birthday 06/25/1994

Profile Information

  • Sex
    Masculin
  • Location
    Home
  • Name in game
    sRk7.
  • Level of knowledge
    Începător

Recent Profile Visitors

1,414 profile views
  1. Ala e mysql versiunea r33 presupun, de asta iti da eroare, nu mai ai include-ul de la r-33
  2. Adauga asa la onplayerconnect: SetPlayerPos(playerid, 2.384830, 33.103397, 1199.849976); // Pozitia player SetPlayerVirtualWorld(playerid, 1); // VW 1 SetPlayerInterior(playerid, 1); // Interior Pozitie
  3. Spoiler

    Nimic, doar am postat si eu :D

     

  4. Greseala mea nu am citit bine ce ai scris. #define INFERNUS 411 #define TIMER 2*60 // 2 minute new PlayerVehicle[MAX_PLAYERS] = INVALID_VEHICLE_ID, DestroyTimer = -1, StartTimer = -1; public OnPlayerConnect(playerid) { PlayerVehicle[playerid] = INVALID_VEHICLE_ID; DeletePVar(playerid, "EnterVehicle"); DeletePVar(playerid, "PlayerRentVeh"); return 1; } public OnPlayerDisconnect(playerid, reason) { DeletePVar(playerid, "EnterVehicle"); DeletePVar(playerid, "PlayerRentVeh"); return 1; } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(PlayerVehicle[playerid] == vehicleid && !GetPVarInt(playerid, "EnterVehicle")) { SetPVarInt(playerid, "EnterVehicle", 1); } else if(PlayerVehicle[playerid] == vehicleid && GetPVarInt(playerid, "EnterVehicle") == 0) { KillTimer(StartTimer); } return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { if(PlayerVehicle[playerid] == vehicleid && GetPVarInt(playerid, "EnterVehicle") == 1) { SetPVarInt(playerid, "EnterVehicle", 0); StartTimer = SetTimerEx("DestroyVehicle", 1000, true, "d", playerid); } return 1; } forward DestroyVehicle(playerid); public DestroyVehicle(playerid) { if(GetPVarInt(playerid, "EnterVehicle") != 1 && PlayerVehicle[playerid] != INVALID_VEHICLE_ID) { DestroyTimer ++; if(DestroyTimer == TIMER) { SendClientMessage(GetPVarInt(playerid, "PlayerRentVeh"), -1, "Vehiculul tau a fost distrus."); } } return 1; } CMD:infernus(playerid, params[]) { if(IsPlayerConnected(playerid) && IsPlayerInRangeOfPoint(playerid, 20.0, x, y, z)) { new Float: pos[4], car; GetPlayerPos(playerid, pos[0], pos[1], pos[2]); GetPlayerFacingAngle(playerid, pos[3]); car = AddStaticVehicleEx(INFERNUS, pos[0], pos[1], pos[2], pos[3], -1, -1, 30); PutPlayerInVehicle(playerid, car, 0); SetPVarInt(playerid, "PlayerRentVeh", playerid); } return 1; }
  5. In versiunea 0.3.7 sunt maxim 1000 obiecte. http://wiki.sa-mp.com/wiki/Limits aici ai toate detaliile necesare. https://github.com/samp-incognito/samp-streamer-plugin/wiki/Natives-(Objects)
  6. CMD:premier(playerid, params[]) { if (IsPlayerInRangeOfPoint(playerid,20.0,2820.0393,1319.7740,10.7577)) { new Float:pos[4]; GetPlayerPos(playerid, pos[0], pos[1], pos[2]); GetPlayerFacingAngle(playerid, pos[3]); new car = AddStaticVehicleEx (426, pos[0], pos[1], pos[2], pos[3], -1, -1, 30); PutPlayerInVehicle(playerid, car, 0); } return 1; } Incearca asa.
  7. Incearca asa forward LoadMapName(); forward LoadMapName2(); forward LoadMapName3(); forward LoadMapName4(); public LoadMapName() { // obiecte mapa return 1; } MAX_OBJECTS = 1000 deci nu poti incarca mai mult de 1000 de obiecte odata.
  8. Ai nevoie de streamer. #include <streamer> La ongamemodeinit() // Obiecte in VW 12 CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, 12, 50.0); // VirtualWorld = 12 CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, 12, 50.0); // VirtualWorld = 12 CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, 12, 50.0); // VirtualWorld = 12 CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, 12, 50.0); // VirtualWorld = 12 La comanda sau unde vrei sa ii apara la playeri SetPlayerVirtualWorld(playerid, 12); Obiectele vor fii afisate doar daca player are vw 12.
  9. IsValidVehicle(vehicleid) { if(vehicleid < 0 || vehicleid > MAX_VEHICLES ) return 0; return 1; } stock NearbyVehicles(playerid) { new vehicleid, Float: VPos[3]; for(new i = 0; i < MAX_VEHICLES; i++) { GetVehiclePos(i, VPos[0], VPos[1], VPos[2]); if(IsValidVehicle(i)) { if(!IsPlayerInAnyVehicle(playerid) && OwnedVeh(i) && IsPlayerInRangeOfPoint(playerid, 5.0, VPos[0], VPos[1], VPos[2])) { vehicleid = i; } } } return vehicleid; } Function:UnlockedPlayerVehicles(playerid) { if(NearbyVehicles(playerid) != INVALID_VEHICLE_ID) { if(!IsPlayerInAnyVehicle(playerid) && IsValidVehicle(NearbyVehicles(playerid))) { new engine, lights, alarm, doors, bonnet, boot, objective; GetVehicleParamsEx(NearbyVehicles(playerid), engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(NearbyVehicles(playerid), engine, lights, alarm, 0, bonnet, boot, objective); return 1; } } return 0; } La OnPlayerConnect SetTimerEx("UnlockedPlayerVehicles", 1000, true, "d", playerid);
  10. public OnVehicleStreamIn(vehicleid, forplayerid) { return 1; }
  11. Hmm, asta cred ca te ajuta: https://github.com/samp-incognito/samp-streamer-plugin/wiki/Natives-(Objects)
  12. stock GetGunName(name) { new id; switch(name) { case "Brass Knuckles": id = 1; case "Golf Club": id = 2; case "Nightstick": id = 3; case "Knife": id = 5; case "Baseball Bat": id = 6; case "Shovel": id = 7; case "AK47": id = 30; } return id; } CMD:buygun(playerid, params[]) { new gunname[32], ammo; if(sscanf(params, "s[32]d", gunname, ammo)) return SendClientMessage(playerid, -1, "/buygun <Gun Name> <Ammo>"); GivePlayerWeapon(playerid, GetGunName(gunname), ammo); GivePlayerMoney(playerid, -500); return 1; }
  13. BuNiCu-RP

    Problema cars

    if(hour == 23) { // Update all vehicles days = days + 1; new str[256]; mysql_tquery(SQL, "UPDATE cars SET cars.days = days + 1, cars.insurance = insurance + 50", "", ""); // Face update +1 si insurance + 50 automat pentru toate masinile. }
×
×
  • Create New...

Important Information

This site uses cookies. By continuing browsing, you agree to the use of this information. For more details, see Terms of Use and Privacy Policy.