Jump to content
  • 0

Question

Posted

Am mai auzit pe la cateva persoane ca ar exista frana de mana la samp 0.3d, dar din pacate nu mai pot lua legatura cu acele persoane.

Aveti idee? este vro functie care blocheaza masina sa nu mai poata fi miscata din locul ei?

Multumesc

7 answers to this question

Recommended Posts

Posted

:)))

Prima data cand aud de asa ceva. Probabil foloseste VehicleParamsEx.

[pawn]

new frana[MAX_PLAYERS];

#define OFF  0

#define ON  1

new engine, lights, alarm, doors, bonnet, boot, objective, panels, tires;

if(strcmp(cmd, "/frana", true) == 0)

{

    if(frana[playerid] == 0)

    {

SendClientMessage(playerid, COLOUR_INFORMATION, "Ai tras frana de mana!.");

    GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);

    SetVehicleParamsEx(GetPlayerVehicleID(playerid), OFF, lights, alarm, doors, bonnet, boot, objective);

    frana = 1;

}

else

{

SendClientMessage(playerid, COLOUR_INFORMATION, "Ai impins frana de mana!.");

    GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);

    SetVehicleParamsEx(GetPlayerVehicleID(playerid), ON, lights, alarm, doors, bonnet, boot, objective);

    frana = 0;

}

}

[/pawn]

Stiu si eu ... branza e pe bani, dar eu tot ma joc pe gratis!

Posted

OoO. Multumesc mult. Eu am nevoie sa il folosesc la un showroom, sa nu se miste vehiculele. Imediat il testez si va dau rezultatul.  :D

EDIT:Imi pare rau dar nu merge:(... imi da erori.. idei?

D:\The Godfather\gamemodes\gf.pwn(61144) : warning 217: loose indentation
D:\The Godfather\gamemodes\gf.pwn(61145) : warning 217: loose indentation
D:\The Godfather\gamemodes\gf.pwn(61151) : error 029: invalid expression, assumed zero
D:\The Godfather\gamemodes\gf.pwn(61151) : warning 215: expression has no effect
D:\The Godfather\gamemodes\gf.pwn(61151) : warning 215: expression has no effect
D:\The Godfather\gamemodes\gf.pwn(61151) : warning 215: expression has no effect
D:\The Godfather\gamemodes\gf.pwn(61151) : warning 215: expression has no effect
D:\The Godfather\gamemodes\gf.pwn(61151) : warning 215: expression has no effect
D:\The Godfather\gamemodes\gf.pwn(61151) : warning 215: expression has no effect
D:\The Godfather\gamemodes\gf.pwn(61151) : error 001: expected token: ";", but found ")"
D:\The Godfather\gamemodes\gf.pwn(61151) : error 029: invalid expression, assumed zero
D:\The Godfather\gamemodes\gf.pwn(61151) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

Posted

Am rezolvat...scrisesem motamo..nu mi-am dat seama ca trebuie sa dau valori la engine, doors..etc.

El merge dar daca imping masina tot se misca. Exista vro modalitate sa nu se mai miste masina chiar daca cineva o impinge?

Posted

Am rezolvat...scrisesem motamo..nu mi-am dat seama ca trebuie sa dau valori la engine, doors..etc.

El merge dar daca imping masina tot se misca. Exista vro modalitate sa nu se mai miste masina chiar daca cineva o impinge?

Din cate stiu eu nu exista...

Stiu si eu ... branza e pe bani, dar eu tot ma joc pe gratis!

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.