Jump to content
  • 0

pomoc Exit vehicle = konec mise


Zimbabwe

Dotaz

Potřeboval bych poradit s takovou věcí. Udělal jsem si scipt, že když vysednu z auta zruší se mi mise ale nevím jak udělat aby se ten checkpoint zrušil jen např u mise Popelář kdej sou CPčka

public OnPlayerExitVehicle(playerid, vehicleid)
{
	DisablePlayerCheckpoint(playerid);
	SetPVarInt(playerid,"DelaSeMise",0);
	return 1;
}
QCMD:mise(playerid,params[])
{
 	if(GetPVarInt(playerid,"DelaSeMise") == 1) return InfoB(playerid,"Mas rozdelanou misi",3);
	if(Job[playerid] == 21)
	{
        if(Job[playerid] == 21)
	{
	if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 408) return SCM(playerid,ORANZOVA,"Musíš být ve vozidle{ff0000} Trashmaster");
  		SetPVarInt(playerid,"DelaSeMise",1);
		SetPVarInt(playerid,"PostupVMisi",1);
		SetPlayerCheckpoint(playerid,1562.2322,1023.5142,10.8203,10);
 }

Prosím o radu. Díky

Link to comment
Share on other sites

6 odpovědí na tuto otázku

Recommended Posts

  • 0

QCMD:mise(playerid,params[])
{
    if(GetPVarInt(playerid,"DelaSeMise") == 1) return InfoB(playerid,"Mas rozdelanou misi",3);
    if(Job[playerid] == 21)
    {
if(Job[playerid] == 21)
    {
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 408) return SCM(playerid,ORANZOVA,"Musíš být ve vozidle{ff0000} Trashmaster");
        SetPVarInt(playerid,"DelaSeMise",1);
        SetPVarInt(playerid,"PostupVMisi",1);
        SetPlayerCheckpoint(playerid,1562.2322,1023.5142,10.8203,10);

}

}
}

Link to comment
Share on other sites

  • 0

GPS a misi nemůžeš mít zároveň .. na serveru můžu být max 2 CP. A to přes SetPlayerCheckPoint a  SetPlayerRaceCheckPoint .. takže si gps udělej přes normal a misi přes race

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...