Jump to content
  • 0

Se blocheaza caracterul


Question

Posted

Salutare!

Folosesc acest gm si am o problema la el...

Cate odata cand intra playerii in masina nu se mai pot misca, nu pot iesi din masina si sunt oblicati sa iasa de pe server pentru a se rezolva, acelas lucru se intampla si cand un player moare... Dar fazele astea nu se intampla mereu, cate odata... De la ce poate fi ? Cum se poate rezolva ?

Multumesc.

15 answers to this question

Recommended Posts

Posted

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new vehicleiddkn = GetPlayerVehicleID(playerid);
SetVehicleHealth(vehicleiddkn,99999*99999*999.0);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
    TextDrawHideForPlayer(playerid,HealthBar[playerid]);
   	return 1;
}

Astea... Nu ?

Posted

pai nu stiu daca iti va merge dar incearca sa pui la onplayerentervehicle:

TogglePlayerControllable(playerid, 1);
si la onplayerspawn:
TogglePlayerControllable(playerid, 1);

si spune-ne daca ti-a mers.

Posted

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new vehicleid = GetPlayerVehicleID(playerid);
SetVehicleHealth(vehicleid,999);
return 1;
}
asa e mai simplu...daca nuti merge fa asa
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new vehicleiddkn = GetPlayerVehicleID(playerid);
SetVehicleHealth(vehicleiddkn,999);
return 1;
}

u78ch.jpg

CHECK MY CHANNEL!

http://www.youtube.com/user/amysoica

Posted

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new vehicleid = GetPlayerVehicleID(playerid);
SetVehicleHealth(vehicleid,999);
return 1;
}
asa e mai simplu...daca nuti merge fa asa
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new vehicleiddkn = GetPlayerVehicleID(playerid);
SetVehicleHealth(vehicleiddkn,999);
return 1;
}

Lool =))

Stii macar ce fac liniile alea?:))

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

Posted

da stiu :)) doar am editat nijte nume ;))

new vehicleid= GetPlyaervehicleID(playerid);

a creat un nou num si a scris ce inseamna ala

si

SetVehicleHealth(vhicleid, 100);

a setat viata vhiculului vehicleid tocmai a scris ce inseamna, acolo sus

u78ch.jpg

CHECK MY CHANNEL!

http://www.youtube.com/user/amysoica

Posted
public OnPlayerStateChange(playerid, newstate, oldstate)
{
	if(oldstate == PLAYER_STATE_DRIVER)
	{
		if(newstate == PLAYER_STATE_ONFOOT)
		{
			if(InCar[playerid] == 1)
			{
				PutPlayerInVehicle(playerid, WhatCar[playerid], Driver);
			}
		}
	}
	if(oldstate == PLAYER_STATE_PASSENGER)
	{
		if(newstate == PLAYER_STATE_ONFOOT)
		{
			if(InCar[playerid] == 1)
			{
				PutPlayerInVehicle(playerid, WhatCar[playerid], Passanger);
			}
		}
	}
	if(oldstate == PLAYER_STATE_ONFOOT)
	{
		if(newstate == PLAYER_STATE_DRIVER || PLAYER_STATE_PASSENGER)
		{
			InCar[playerid] = 1;
			WhatCar[playerid] = GetPlayerVehicleID(playerid);
		}
	}
	return 1;
}

Posted

daca e sa vrei , cand ai timp sa imi lasi un pm si iti trimit ip-u sa vezi exact ce se intampla  :undecided: asta doar daca vrei  :laugh:

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.