Jump to content

Jedlo v0.3


YoMom

Recommended Posts

Ahojte Dnes som vytvoril svoj 3 FS Jedlo :)

Verzia:0.3

FS:Jedlo za jedlo sa nič neplatí zlepším to.

Príkazy:/jedlo to vám ukáže všetky príkazy

 

UPRAVUJEM

 

Tento FS ale aj SkinSystém plánujem rozšíriť.

Link to comment
Share on other sites

Sice je to starý nápad ale oceňuji že je to tvé 3.FS ... Máš tam spoustu jídla což se mi líbí. Pokud budeš dělat další verzi tak si zkus dialogy a aby to bylo za nějaké peníze.

Link to comment
Share on other sites

 

// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include 

#define ORANGE      0xFF8C00AA
#define RED         0xFF0000FF
#define MODRA       0x0000FFFF
#define SLABOMODRA  0x00EEFFFF
#define FIALOVA     0x8800FFFF
#define RUZOVA      0xFF00EEFF
#define CIERNA      0x000000FF
#define BIELA       0xFFFFFFFF
#define ZELENA      0x44FF00FF
#define ZLTA        0xEEFF00FF

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Jedlá by NiceKiller alias Phoenix_XD   ");
print("--------------------------------------\n");
return 1;
}
OnPlayerCommandText(playerid, cmdtext[]);
}
if(!strcmp,(cmdtext,"/burger", true) == 0)
{
SetPlayerHealth(playerid, 45);
SendClientMessage(playerid,MODRA,"Zjedol si Burger dobrú chut :)");
SendClientMessageToAll(MODRA,"Hrac %s zjedol Burger /burger");
return 0;

OnPlayerCommandText(playerid, cmdtext[]);
}
if(!strcmp,(cmdtext,"/pizza", true) == 0)
{
SetPlayerHealth(playerid, 35);
SendClientMessage(playerid,RED,"Zjedol si Pizzu dobrú chut :)");
SendClientMessageToAll(RED,"Hrac %s zjedol Pizzu /pizza");
return 0;

OnPlayerCommandText(playerid, cmdtext[]);
}
if(!strcmp,(cmdtext,"/cina", true) == 0)
{
SetPlayerHealth(playerid,65);
SendClientMessage(playerid,SLABOMODRA,"Zjedol si Cínu dobrú chut");
SendClientMessageToAll(SLABOMODRA,"Hrac %s zjedol Cínu /cina");
return 0;

OnPlayerCommandText(playerid, cmdtext[]);
}
if(!strcmp,(cmdtext,"/rozok", true) == 0)
  {
  SetPlayerHealth(playerid 15);
  SendClientMessage(playerid,ZLTA,"Zjedol si Rozok dobrú chut");
  SendClientMessageToAll(ZLTA,"Hrac %s zjedol rozok /rozok");
  return 0;

OnPlayerCommandText(playerid, cmdtext[]);
}
if(!strcmp,(cmdtext,"/soda", true) == 0)
   {
   SetPlayerHealth(playerid 10);
   SendClientMessage(playerid,ZELENA,"Vypil si sódu"
   SendClientMessageToAll(ZELENA,"Hrac %s vypil sódu /soda")
   return 0;

OnPlayerCommandText(playerid, cmdtext[]);
}
if(!strcmp,(cmdtext,"/kolac", true) == 0)
   {
   SetPlayerHealth(playerid 35);
   SendClientMessage(playerid, FIALOVA,"Zjedol si kolác dobrú chut");
   SendClientMessageToAll(FIALOVA,"Hrac %s zjedol kolác /kolac");
   return 0;

OnPlayerCommandText(playerid, cmdtext[]);
}
if(!strcmp,(cmdtext,"/lizatko", true) == 0)
   {
   SetPlayerHealth(playerid 10);
   SendClientMessage(playerid, RUZOVA,"Zjedol si lizatko dobrú chut");
   SendClientMessageToAll(RUZOVA,"Hrac %s zjedol lizatko /lizatko");
   return 0;

OnPlayerCommandText(playerid, cmdtext[]);
}
if(!strcmp,(cmdtext,"/kinderko", true) == 0)
   {
   SetPlayerHealth(playerid 5);
   SendClientMessage(playerid,BIELA,"Zjedol si kinderko a bola v nom pekná hracka :D");
SendClientMessageToAll(BIELA,"Hrac %s našiel v kinderku peknú hračku  /kinderko");
SetPlayerAmmo(playerid, 31, 150);
return 0;

OnPlayerCommandText(playerid, cmdtext[]);
}
if(!strcmp,(cmdtext,"/palacinky", true) == 0)
   {
   SetPlayerHealth(playerid 25);
   SendClientMessage(playerid,BIELA,"Zjedol si Palacinky");
   SendClientMessageToAll(BIELA,"Hrac %s zjedol Palacinky /palacinky");
   return 0;

OnPlayerCommandText(playerid, cmdtext[]);
}
if(!strcmp,(cmdtext,"/dzus", true) == 0)
   {
   SetPlayerHealth(playerid 10);
   SendClientMessage(playerid,BIELA,"Vypil si dzus");
   SendClientMessageToAll(BIELA,"Hrac %s vypil dzus");
   return 0;

OnPlayerCommandText(playerid, cmdtext[]);
}
if(!strcmp,(cmdtext,"/hranolky", true) == 0)
   {
   SetPlayerHealth(playerid 30);
   SendClientMessage(playerid,BIELA,"Zjedol si Hranolky");
   SendClientMessageToAll(BIELA,"Hrac %s zjedol Hranolky /hranolky");
   return 0;

OnPlayerCommandText(playerid, cmdtext[]);
}
if(!strcmp,(cmdtext,"/susi", true) == 0)
   {
   SetPlayerHealth(playerid 40);
   SendClientMessage(playerid,BIELA,"Zjedol si Suši");
   SendClientMessageToAll(BIELA,"Hrac %s zjedol Suši /susi");
   return 0;

OnPlayerCommandText(playerid, cmdtext[]);
}
if(!strcmp,(cmdtext,"/cola", true) == 0)
   {
   SetPlayerHealth(playerid 10);
   SendClientMessage(playerid,BIELA,"Vypil si Coca Colu");
   SendClientMessageToAll(BIELA,"Hrac %s vypil Coca Colu /cola");
   return 0;

OnPlayerCommandText(playerid, cmdtext[]);
}
if(!strcmp,(cmdtext,"/saguaro", true) == 0)
   {
   SetPlayerHealth(playerid 15);
   SendClientMessage(playerid,BIELA,"Vypil si Saguaro");
   SendClientMessageToAll(BIELA,"Hrac %s vypil Saquaro /saguaro");
   return 0;

OnPlayerCommandText(playerid, cmdtext[]);
}
if(!strcmp,(cmdtext,"/npivo", true) == 0)
   {
   SetPlayerHealth(playerid 5);
   SendClientMessage(playerid,BIELA,"Vypil si Nealko. pivo");
   SendClientMessageToAll(BIELA,"Hrac %s vypil nealko. pivo");
   return 0;



OnPlayerCommandText(playerid, cmdtext[]);
}
if(!strcmp,(cmdtext,"/jedlo", true) == 0)
   {
   SendClientMessage(playerid, ORANGE,"================Jedlá==============");
   SendClientMessage(playerid, ZELENA," /burger /pizza /cina /soda /rozok ");
   SendClientMessage(playerid, RUZOVA,"/kinderko /lizatko /kolac /npivo   ");
   SendClientMessage(playerid, MODRA, "/npivo /saguaro /cola /susi /dzus  ");
   SendClientMessage(playerid, BIELA, "/hranolky /palacinky               ");
   SendClientMessage(playerid, ORANGE,"================Jedlá==============");

public OnFilterScriptExit()
{
return 1;
}


#endif

//------------------------------------//
//Autor:Phoenix_XD alias NiceKiller   //
//Datum vytvorenia:6.2.2012           //
//Cas vytvorenia:14:54                //
//Verzia:0.5                          //
//Pocet jedál:16                      //
//Príkazy:/jedlo                      //
//                                    //
//------------------------------------//

 

Nezdá sa mi, že by to fungovalo...

Link to comment
Share on other sites

Zapomněl jsi oddělat #if defined FILTERSCRIPT & #endif

 

Po oddělání vznikne toto:

 

 

Jedlo.pwn(28) : error 054: unmatched closing brace ("}")
Jedlo.pwn(29) : error 010: invalid function or declaration
Jedlo.pwn(34) : error 010: invalid function or declaration
Jedlo.pwn(37) : error 054: unmatched closing brace ("}")
Jedlo.pwn(38) : error 010: invalid function or declaration
Jedlo.pwn(43) : error 010: invalid function or declaration
Jedlo.pwn(46) : error 054: unmatched closing brace ("}")
Jedlo.pwn(47) : error 010: invalid function or declaration
Jedlo.pwn(52) : error 010: invalid function or declaration
Jedlo.pwn(55) : error 054: unmatched closing brace ("}")
Jedlo.pwn(56) : error 010: invalid function or declaration
Jedlo.pwn(61) : error 010: invalid function or declaration
Jedlo.pwn(64) : error 054: unmatched closing brace ("}")
Jedlo.pwn(70) : error 010: invalid function or declaration
Jedlo.pwn(73) : error 054: unmatched closing brace ("}")
Jedlo.pwn(74) : error 010: invalid function or declaration
Jedlo.pwn(79) : error 010: invalid function or declaration
Jedlo.pwn(82) : error 054: unmatched closing brace ("}")
Jedlo.pwn(83) : error 010: invalid function or declaration
Jedlo.pwn(88) : error 010: invalid function or declaration
Jedlo.pwn(91) : error 054: unmatched closing brace ("}")
Jedlo.pwn(92) : error 010: invalid function or declaration
Jedlo.pwn(98) : error 010: invalid function or declaration
Jedlo.pwn(101) : error 054: unmatched closing brace ("}")
Jedlo.pwn(102) : error 010: invalid function or declaration

 

Link to comment
Share on other sites

a že by jsi tu aspoň vypsal ty příkazy?

a co to umí?

 

tvůj příspěvek mě nepřesvědčil o tom abych to stáhl :d

 

Doplní ty to HP napr. /palacinky a dostaneš 15 HP

Link to comment
Share on other sites

Tohle ti životy jen nastaví takže když má někdo 100HP a nějaké jídlo mu má nastavit 45 tak se mu ubere 55HP udělej si to přes GivePlayerHealth a udělej si podmínku že když hráč bude mít víc než 100HP tak mu to dá 100 kdyby to snědl např s 99HP tak aby neměl 144HP.

Link to comment
Share on other sites

SetPlayerHealth(playerid, 5); - blbosť nastaví mu z HP 100 napr. HP 5 ? :ble:

 

skús radšej toto napr.:

 

new Float:ZIVOTDPC;

SetPlayerHealth(playerid,GetPlayerHealth(playerid,ZIVOTDPC)+5);

 

ale ináč na to že si začiatočník to nie je zlé len si tam toto oprav, GL ;)

Link to comment
Share on other sites

heh
SendClientMessageToAll(RED,"Hrac %s zjedol Pizzu /pizza");

 

 

Mal to urobit tak :

 

new string[64], pName[MAX_PLAYER_NAME];

GetPlayerName(playerid,pName,MAX_PLAYER_NAME);

format(string,sizeof (string),"Hrac %s zjedol Pizzu /pizza",pName,playerid);

SendClientMessageToAll(RED,string);

 

Ked tam da len : SendClientMessageToAll(RED,"Hrac %s zjedol Pizzu /pizza

Spôsobi mu to pád servera :d

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