DM World Message
#7

Okay^^ I make /lock in my Car , -> My Car is now closed with this code

Код:
	if(!strcmp(cmdtext,"/lock"))
	{
	new Float:VX,Float:VY,Float:VZ;
	for(new vehicleid=1;vehicleid<MAX_VEHICLES;vehicleid++)
	{
	    GetVehiclePos(vehicleid,VX,VY,VZ);
	    if(!IsPlayerInRangeOfPoint(playerid,2.5,VX,VY,VZ))continue;
		if(Lock[vehicleid] == 0)
		{
		    Lock[vehicleid] = 1;
		    SendClientMessage(playerid,COLOR_GREEN," Car is now closed.");
		    break;
		}
		if(Lock[vehicleid] == 1)
		{   
		    Lock[vehicleid] = 0;
		    SendClientMessage(playerid,COLOR_GREEN," Car is now open.");
		    break;
		}
	}
	return 1;
	}
when now the Car explode with me in the car, and the car respawned cant i get in the car

Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	if(Lock[vehicleid] == 1)
	{
 		ClearAnimations(playerid);
	    SendClientMessage(playerid,COLOR_GREEN," This Car is closed!");
	    return 1;
	}
how can i make when the Car respawn - the Server make the car open automatic ?
i hope you understand me
Reply


Messages In This Thread
Carrespawn - by SanAndreasVille - 21.02.2011, 14:34
Re: DM World Message - by SanAndreasVille - 21.02.2011, 21:27
Re: DM World Message - by SanAndreasVille - 23.02.2011, 21:55
Re: DM World Message - by maramizo - 23.02.2011, 22:00
Re: DM World Message - by SanAndreasVille - 23.02.2011, 22:01
Re: DM World Message - by maramizo - 23.02.2011, 22:08
Re: DM World Message - by SanAndreasVille - 23.02.2011, 22:13
Re: DM World Message - by maramizo - 23.02.2011, 22:35

Forum Jump:


Users browsing this thread: 1 Guest(s)