Skripta koju koristim: Geforce edit
Detaljan opis problema: Dodao sam komandu /seatbelt da se veze pojasem sigurnosnim, e sada kako da dodam kada nije vezan i sudari se da mu da drunk efekat i da mu skine hp-a malo ?
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
[Pomoc] /seatbelt
320
pregleda
4
postova
18. Feb. 2013.
forward Velocidad(playerid);public Velocidad(playerid)
{
new Float:Vx, Float:Vy, Float:Vz;
if(IsPlayerInAnyVehicle(playerid) && Informacion)
{
GetVehicleVelocity(GetPlayerVehicleID(playerid), Vx, Vy, Vz);
if(Vx > -0.1 && Vx < 0.1 && Vy > -0.1 && Vy < 0.1)
{
new Float:Vida;
GetPlayerHealth(playerid, Vida);
SetPlayerHealth(playerid, Vida-20.0);
SetPlayerDrunkLevel(playerid, 500000);
Informacion = 0;
new String;
new Nombre;
GetPlayerName(playerid,Nombre,sizeof(Nombre));
format(String, sizeof(String), "{6EF83C}Vesti |{FFFFFF}Danas Los Santosu je bio udes, pocinio ga je %s.", Nombre);
ProxDetector(30.0, playerid, String, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
TCamara = SetTimerEx("Camara", 10000, 1, "i", playerid);
}
}
return 1;
}ja kod mene u modu imam ovo pa mozes da stavis if(belt = 0 ili kako vec ti je definisano da ide komanda
18. Feb. 2013.
Dimi wrote on February 18, 2013, 10:15 am:
forward Velocidad(playerid);public Velocidad(playerid)
{
new Float:Vx, Float:Vy, Float:Vz;
if(IsPlayerInAnyVehicle(playerid) && Informacion)
{
GetVehicleVelocity(GetPlayerVehicleID(playerid), Vx, Vy, Vz);
if(Vx > -0.1 && Vx < 0.1 && Vy > -0.1 && Vy < 0.1)
{
new Float:Vida;
GetPlayerHealth(playerid, Vida);
SetPlayerHealth(playerid, Vida-20.0);
SetPlayerDrunkLevel(playerid, 500000);
Informacion = 0;
new String;
new Nombre;
GetPlayerName(playerid,Nombre,sizeof(Nombre));
format(String, sizeof(String), "{6EF83C}Vesti |{FFFFFF}Danas Los Santosu je bio udes, pocinio ga je %s.", Nombre);
ProxDetector(30.0, playerid, String, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
TCamara = SetTimerEx("Camara", 10000, 1, "i", playerid);
}
}
return 1;
}ja kod mene u modu imam ovo pa mozes da stavis if(belt = 0 ili kako vec ti je definisano da ide komanda
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava