DM World Message - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: DM World Message (
/showthread.php?tid=229344)
Carrespawn -
SanAndreasVille - 21.02.2011
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
Re: DM World Message -
SanAndreasVille - 21.02.2011
Help pls.
Re: DM World Message -
SanAndreasVille - 23.02.2011
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
Re: DM World Message -
maramizo - 23.02.2011
Okay by KillerWorld I think you mean VirtualWorld?
Re: DM World Message -
SanAndreasVille - 23.02.2011
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
Re: DM World Message -
maramizo - 23.02.2011
Uhh I still can't understand?
Re: DM World Message -
SanAndreasVille - 23.02.2011
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
Re: DM World Message -
maramizo - 23.02.2011
pawn Код:
public OnVehicleSpawn(vehicleid)
{
Lock[vehicleid] = 0;
return 1;
}