https://open.mp logo
Docs
Join the conversationJoin Discord
Channels
general
general-show-off
opemp-dev
open-mp-server-beta
openmp-samp-help
pawn-help
sa-show-off
samp-and-sa
samp-android
support-forum
Powered by Linen
general
  • f

    fast-lamp-72228

    12/24/2022, 8:06 AM
    That my goal
  • g

    gentle-london-6993

    12/24/2022, 8:08 AM
    Good luck with your project
  • w

    wide-vase-45001

    12/24/2022, 8:13 AM
    Cara atasi warga bisa naik kendaraan faction gimana ya bg
  • g

    gentle-london-6993

    12/24/2022, 8:14 AM
    What?
  • g

    gentle-london-6993

    12/24/2022, 8:14 AM
    Here's a only-english channel bro
  • w

    wide-vase-45001

    12/24/2022, 8:14 AM
    How do you deal with residents being able to ride faction vehicles?
  • w

    wide-vase-45001

    12/24/2022, 8:14 AM
    Fraction
  • w

    wide-vase-45001

    12/24/2022, 8:15 AM
    my english is bad
  • g

    gentle-london-6993

    12/24/2022, 8:15 AM
    I think you meant to say a vehicle just for a faction
  • g

    gentle-london-6993

    12/24/2022, 8:15 AM
    Right?
  • w

    wide-vase-45001

    12/24/2022, 8:16 AM
    That's right, I want vehicles only for factions and citizens can't ride them
  • w

    wide-vase-45001

    12/24/2022, 8:16 AM
    How do you code it
  • g

    gentle-london-6993

    12/24/2022, 8:16 AM
    It's simple, just verify with a variable if the player who enters in the car is a faction member or not
  • w

    wide-vase-45001

    12/24/2022, 8:16 AM
    How do you find these variables?
  • g

    gentle-london-6993

    12/24/2022, 8:21 AM
    c
    new car[1];
    
    public OnGameModeInit() {
        car[0] = CreateVehicle // Create the vehicle with your params, but atibutting the value to a variable.
        return 1;
    }
    
    public OnPlayerStateChange(playerid, newstate, oldstate) {
        static vid, model;
        vid = GetPlayerVehicleID(playerid), model = GetVehicleModel(vid);
    
        if(newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOO0T && vid == car[0] && faction != faction) /* Verifies the faction here, it's your variable.*/ {
        RemovePlayerFromVehicle(playerid);
        ClearAnimations(playerid);
        return 1;
    }
  • w

    wide-vase-45001

    12/24/2022, 8:21 AM
    Where do I put this code?
  • g

    gentle-london-6993

    12/24/2022, 8:22 AM
    On your gamemode
  • g

    gentle-london-6993

    12/24/2022, 8:22 AM
    but remember, you need to change the "faction" to your faction variable
  • a

    adventurous-hair-36125

    12/24/2022, 8:22 AM
    ClearAnimations*
  • w

    wide-vase-45001

    12/24/2022, 8:23 AM
    ok let me try first
  • w

    wide-vase-45001

    12/24/2022, 8:36 AM
    Error
  • w

    wide-vase-45001

    12/24/2022, 8:36 AM
    the code
  • f

    fierce-lamp-97386

    12/24/2022, 8:37 AM
    It seems ChatGPT is trained on YSI documentation
  • g

    gentle-london-6993

    12/24/2022, 8:42 AM
    What's the error?
  • g

    gentle-london-6993

    12/24/2022, 8:45 AM
    🙂
  • w

    wide-vase-45001

    12/24/2022, 8:51 AM
    i am thinking of changing my gamemode
  • f

    fierce-lamp-97386

    12/24/2022, 8:52 AM
    "Y_Less is a software engineer with a background in game development and a well-known and respected member of the Pawn community. He is the primary developer and maintainer of the YSI (Yet Another Script Interface) library for the Pawn scripting language, and he has contributed a number of other useful tools and libraries to the Pawn community as well. Y_Less is active in the Pawn community and is known for his contributions to the development of the language and its ecosystem. He is also involved in other open source projects and is respected for his expertise and professionalism. I do not have any further information about Y_Less, and I am unable to browse the internet to find additional information."
  • f

    fierce-lamp-97386

    12/24/2022, 8:54 AM
    ChatGPT will wank Y_Less
  • g

    gentle-london-6993

    12/24/2022, 8:54 AM
    Whatafuck ;-;
  • f

    fierce-lamp-97386

    12/24/2022, 8:55 AM
    xD
Powered by Linen
Title
f

fierce-lamp-97386

12/24/2022, 8:55 AM
xD
View count: 1