Jump to content
  • 0

Se blocheaza caracterul


meoro

Question

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.

Link to comment
Share on other sites

15 answers to this question

Recommended Posts

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 ?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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;
}

Link to comment
Share on other sites

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.