DM World Message
#1

can i make this with the


Код:
	if(strcmp(cmdtext, "/cr", true) == 0)
		{
		if(IsPlayerAdmin(playerid))
		{
			CheckCars();
			RespawnAll();
			SendClientMessage(playerid, COLOR_YELLOW, "* Cars Respawned ");
			return 1;
 		}
	}
and a code for making doors open ? or can i make its server side when the cars automatic respawned makes the thor open
Reply
#2

Help pls.
Reply
#3

can i make this with the


Код:
	if(strcmp(cmdtext, "/cr", true) == 0)
		{
		if(IsPlayerAdmin(playerid))
		{
			CheckCars();
			RespawnAll();
			SendClientMessage(playerid, COLOR_YELLOW, "* Cars Respawned ");
			return 1;
 		}
	}
and a code for making doors open ? or can i make its server side when the cars automatic respawned makes the thor open
Reply
#4

Okay by KillerWorld I think you mean VirtualWorld?
Reply
#5

sry ^^ the Gameworld i fixed now is a problem with the Cars when i die in a car/ or the car explode with me and i have befor /lock . when the car respawn ist the door closed
Reply
#6

Uhh I still can't understand?
Reply
#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
#8

pawn Код:
public OnVehicleSpawn(vehicleid)
{
    Lock[vehicleid] = 0;
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)