[POMOC]Polaganje


Započeo Sarkenzo, Septembar 15, 2014, 01:34:46 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: GTA RP
Detaljan opis problema:Napravio sam kada igrac dodje pred kraj polaganja ako je helt vozila vise od 950 da prodje a ako je ispod 950 da padne.Medjutim kada mu je helt vise od 950 prodje.A kada mu je helt ispod 950 on prodje i padne znaci ispise mu da je pao a dobije dozvolu.Kako to da popravim hitno je
Dio skripte:
    if(Ccp[playerid] == 42) // This checks if our variable equals to 2, if so: it continues
    {
    new Float:health;
    if(IgracPolozio[playerid] == 0)
    GetVehicleHealth(GetPlayerVehicleID(playerid),health);
    if(health <= 950)
    SendClientMessage(playerid, COLOR_RED, "Instruktor:Slupali ste vozilo, i pali na ispitu!");
    _JBC_SetVehicleToRespawn(GetPlayerVehicleID(playerid));
	RemovePlayerFromVehicle(playerid);
    DisablePlayerCheckpoint(playerid);
    if(health >= 950)
    if(IgracPolozio[playerid] == 1)
    GetVehicleHealth(GetPlayerVehicleID(playerid),health);
    if(health >= 950)
	IgracPolaze[playerid] = 0;
	IgracPolozio[playerid] = 0;
	IgracPlatioPolaganje[playerid] = 0;
    PlayerInfo[playerid][pCarLic] = 1;
    SendClientMessage(playerid, COLOR_YELLOW, "Instruktor:Cestitam na uspesno polozenom vozackom ispitu!");
    SendClientMessage(playerid, COLOR_YELLOW, "Instruktor:Evo vase vozacke dozvole!");
    _JBC_SetVehicleToRespawn(GetPlayerVehicleID(playerid));
	RemovePlayerFromVehicle(playerid);
    DisablePlayerCheckpoint(playerid);
    Ccp[playerid] = 0; // This resets the variable, so if you enter a checkpoint right now, nothing will happen
    return 1;
}
Neke slike/video za lakse dobivanje pomoci(neobavezno):

Denis_Lapi

*

Balkan SA:MP Web Designer

Kasno je pa mi je koncentracija slaba, ali mislim da bi trebalo da radi. Proveri pa javi..

  if(Ccp[playerid] == 42) // This checks if our variable equals to 2, if so: it continues
    {
    new Float:health;
    if(IgracPolozio[playerid] == 0)
    GetVehicleHealth(GetPlayerVehicleID(playerid),HEALTH);
    if(HEALTH <= 950)
   {
    SendClientMessage(playerid, COLOR_RED, "Instruktor:Slupali ste vozilo, i pali na ispitu!");
    _JBC_SetVehicleToRespawn(GetPlayerVehicleID(playerid));
	RemovePlayerFromVehicle(playerid);
    DisablePlayerCheckpoint(playerid);
    if(health >= 950)
    if(IgracPolozio[playerid] == 1)
    GetVehicleHealth(GetPlayerVehicleID(playerid),health);
   }
    if(health >= 950)
   {
	IgracPolaze[playerid] = 0;
	IgracPolozio[playerid] = 0;
	IgracPlatioPolaganje[playerid] = 0;
    PlayerInfo[playerid][pCarLic] = 1;
    SendClientMessage(playerid, COLOR_YELLOW, "Instruktor:Cestitam na uspesno polozenom vozackom ispitu!");
    SendClientMessage(playerid, COLOR_YELLOW, "Instruktor:Evo vase vozacke dozvole!");
    _JBC_SetVehicleToRespawn(GetPlayerVehicleID(playerid));
	RemovePlayerFromVehicle(playerid);
    DisablePlayerCheckpoint(playerid);
    Ccp[playerid] = 0; // This resets the variable, so if you enter a checkpoint right now, nothing will happen
   }
    return 1;
}

[FS] Bank Sistem
[TuT] Array Sistem (Napredna)


"Pa krenite na mene i provesce te se super ko kapetan Kuka kada levom brise dupe"

www.denis-lapi.com

Hvala buraz uvek mi sve pomognes.Moze lock ovde.. :)
Poslednja Izmena: Septembar 15, 2014, 13:12:19 POSLE PODNE od Sarkenzo