Jump to content
  • 0

pomoc Exit


Guest SpiRinG

Dotaz

Potrebujem pomoc spravil som si firmu na Ammo ale potrebujem takuto vec abi ket hrac bude dnu v firme a stlaci enter ho portlo vonku z firmy

ak pomoze

Fakt mi pomozete prosim

(kto pomoze mozno dam PWN)

stock CreateFirma(Float:x,Float:y,Float:z,Cost_Firma)

 

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)

{

if(newkeys == KEY_SECONDARY_ATTACK)

{

if(IsPlayerInSphere(playerid,316.5250,-167.7070,999.5938,5) == 1)

{

{

-------------------------------------------------------------------------------

}

}

}

return 1;

}

Link to comment
Share on other sites

25 odpovědí na tuto otázku

Recommended Posts

  • 0

Nie totiz ak budem mat viac firiem tak ma portne stale k tej jednej ja potrebujem prestne k dej totis aj WirtualWorld mam takto SetPlayerVirtualWorld(playerid,dialogid+1);

Potrebujem prestne vonku z firmy

Link to comment
Share on other sites

  • 0
iaN":20irlh84]
adrian mala oprava indentifikace zmáčknutí klávesy je takto

if(newkeys & KEY_xxx)

viz.wiki

WTF ? MInule že == a ted & ? xD ja sem mimooo

mrkni na tu wikinu je to tam napsane že if(newkeys & KEY_xxx)

Link to comment
Share on other sites

  • 0

jzs :-) Spravil som to sam totis som mieslel ze to nedam tak som skusal skusal a cakal na odpovedt az nakoniec som s apozrel an HouseSystem a mam to takto

 

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)

{

if(newkeys == KEY_SECONDARY_ATTACK)

{

if(IsPlayerInSphere(playerid,316.5250,-167.7070,999.5938,5) == 1)

{

{

SetPlayerInterior(playerid,0);

SetPlayerVirtualWorld(playerid,0);

SetPlayerPos(playerid,Firma[FirmaCount][xF],Firma[FirmaCount][yF],Firma[FirmaCount][zF]);

}

}

}

return 1;

}

 

 

photo.php?photo_id=1

Link to comment
Share on other sites

  • 0
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_SECONDARY_ATTACK)
{
if(IsPlayerInSphere(playerid,316.5250,-167.7070,999.5938,5) == 1)
{
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerPos(playerid,Firma[FirmaCount][xF],Firma[FirmaCount][yF],Firma[FirmaCount][zF]);
}
}
}
return 1;
}

Link to comment
Share on other sites

  • 0
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
if (!IsPlayerInAnyVehicle(playerid)){
if(newinteriorid == 1)
{
    DisablePlayerCheckpoint(playerid);
	SetTimerEx("AMMUTIMER",1000,0, "i", playerid);
	SetPlayerCheckpoint(playerid, 296.5152,-37.5834,1001.5156, 1.0);
}
if(newinteriorid == 6)
{
    DisablePlayerCheckpoint(playerid);
	SetTimerEx("AMMUTIMER",1000,0, "i", playerid);
	}
if(newinteriorid == 4)
{
    DisablePlayerCheckpoint(playerid);
	SetTimerEx("AMMUTIMER",1000,0, "i", playerid);
	AmmoCP[playerid]=1;
	SetPlayerCheckpoint(playerid, 297.1277,-79.8642,1001.5156, 1.0);
}
if(newinteriorid == 0)
{
    DisablePlayerCheckpoint(playerid);
}

}

return 1;
}

forward AMMUTIMER(playerid);
public AMMUTIMER(playerid)
{
SetPlayerShopName(playerid,"FDPIZA");
return 1;
}

Zaručene funguje, vytahl jsem to z mého modu SuperZivot.
Script není můj.

Link to comment
Share on other sites

  • 0

jo ide to idem to skusit este pre istotu

 

INAK(AntiMoneyCheat)

 

Ak mam v mode

 

#define GivePlayerMoneyEx(%0,%1) GivePlayerMoney(%0,%1);\

SetPVarInt(%0,"Prachy",GetPVarInt(%0,"Prachy")+%1)

#define GetPlayerMoneyEx(%0) GetPVarInt(%0,"Prachy")

 

a premenovane vsetko ...+Ex

Co musim dat do FS abi to davalo money lebo teras to da a odpocita

Link to comment
Share on other sites

  • 0

Jo ty si myslel jako tu šipku, já myslel že ten CP,tak to se omlouvám.

 

Ta funkce ktera smaže VŠECHNY šipky je:

//OnGameModeInit/OnFilterScriptInit

 

DisableInteriorEnterExits();

 

//pokud chceš jen tu 1, dej tam objekt, jinak se to nedá

Link to comment
Share on other sites

  • 0

http://wiki.sa-mp.com/wiki/ShopNames pouze odstrany toho panáčka ktery prodava zbrane a ten CP

 

DisableInteriorEnterExits(); -Odstrani všechny na serveru.

Pak je tady 2 možnost: Createobject -Dát na tu šipku object,aby se hráčy k ní nedostaly.

 

O jiné možnosty nevím

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...