Jump to content
  • 0

pomoc Více filterscripts do jednoho


Malklar

Dotaz

Ahoj 

Mám několik zaměstnání ve  filterscriptu a chtěl bych je dát do jednoho.

Nevím jak na to, hlavně nevím jak udělat další SetPlayerCheckpoint aby se neprali nebo aby se ukázali.

Pokoušel jsem se o to ale nakonec jsem to vzdal.

 

 

Pokud někdo poradí budu rád.

 

Dík 

Link to comment
Share on other sites

4 odpovědí na tuto otázku

Recommended Posts

  • 0

Taktika je jednoducha. proste vse co ma stejny callback scukni do jednoho. (nesmi tam byt dvkarat ten stejny)

 

PR:

fs1

public OnPlayerEnterCheckpoint(playerid)
{
if(cp == 0) SetPlayer...
if(cp == 1) SetPlayerPos...
return 1;
}

fs2:

public OnPlayerEnterCheckpoint(playerid)
{
if(sanitka == 0) DestroyVehicle..
if(hasic == 1) CreateVehicle...
return 1;
}

A az to scuknes bude to vypadat takhle:

public OnPlayerEnterCheckpoint(playerid)
{
if(cp == 0) SetPlayer...
if(cp == 1) SetPlayerPos...
if(sanitka == 0) DestroyVehicle..
if(hasic == 1) CreateVehicle...
return 1;
}
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...