[GameMode] JFS MiniGames v3.0
#10

Poderia economizar linhas no OnDialogResponse.
Poderia definir os ids dos dialogs.
Poderia adicionar mais anotaзхes pros futuros usuбrios do GM.
Poderia ter otimizado mais os dialogs de criaзгo de veнculos.
Notei que vocк usou o strcat sem usar o strdel... (Nгo sei em dialog, mas em TD isso dб problema).

Poderia em fez de usar stocks dessa forma:
pawn Код:
stock DarArmas(playerid, Arma1, Ballas1, Arma2, Ballas2, Arma3, Ballas3, Arma4, Ballas4)
{
      GivePlayerWeapon(playerid, Arma1, Ballas1);
      GivePlayerWeapon(playerid, Arma2, Ballas2);
      GivePlayerWeapon(playerid, Arma3, Ballas3);
      GivePlayerWeapon(playerid, Arma4, Ballas4);
      return true;
}

stock DarArmas2(playerid, Arma5, Ballas5, Arma6, Ballas6, Arma7, Ballas7)
{
      GivePlayerWeapon(playerid, Arma5, Ballas5);
      GivePlayerWeapon(playerid, Arma6, Ballas6);
      GivePlayerWeapon(playerid, Arma7, Ballas7);
      return true;
}

stock SetarPos(playerid, Float:x, Float:y, Float:z, Float:ang)
{
     SetPlayerPos(playerid, Float:x, Float:y, Float:z);
     SetPlayerFacingAngle(playerid, Float:ang);
     return true;
}


stock EquiparVidaColete(playerid, Float:health, Float:armour)
{
     SetPlayerHealth(playerid, Float:health);
     SetPlayerArmour(playerid, Float:armour);
     return true;
}
Usar macros desta forma:
pawn Код:
#define DarArmas(%0,%1,%2,%3,%4,%5,%6,%7,%8) GivePlayerWeapon(%0, %1, %2), GivePlayerWeapon(%0, %3, %4), GivePlayerWeapon(%0, %5, %6), GivePlayerWeapon(%0, %7, %8)
#define DarArmas2(%0,%1,%2,%3,%4,%5,%6) GivePlayerWeapon(%0, %1, %2), GivePlayerWeapon(%0, %3, %4), GivePlayerWeapon(%0, %5, %6)
#define SetarPos(%0,%1,%2,%3,%4) SetPlayerPos(%0, %1, %2, %3), SetPlayerFacingAngle(%0, %4)
#define EquiparVidaColete(%0,%1,%2) SetPlayerHealth(%0, %1), SetPlayerArmour(%0, %2)
Vocк criou uma stock pra getar nomes mas nгo tб usando ela em alguns momentos.

O que achei mais tenso foi isso:
pawn Код:
public Cinco()  return GameTextForAll("~w~5",2000,3);
public Quatro() return GameTextForAll("~w~5~n~~b~4",2000,3);
public Tres()   return GameTextForAll("~w~5~n~~b~4~n~~y~3",2000,3);
public Dois()   return GameTextForAll("~w~5~n~~b~4~n~~y~3~n~~p~2",2000,3);
public Um()     return GameTextForAll("~w~5~n~~b~4~n~~y~3~n~~p~2~n~~r~1",2000,3);
public Ja()     return GameTextForAll("~w~5~n~~b~4~n~~y~3~n~~p~2~n~~r~1~n~~g~GO GO GO!",3000,3);
Nгo vi o cуdigo todo enfim; De resto, й um bom GM.
Parabйns por criar e compartilhar tenho certeza que muitos vгo usar ^^
Reply


Messages In This Thread
JFS MiniGames v3.0 - by JonathanFeitosa - 03.09.2011, 21:37
Re: JFS MiniGames v3.0 - by histire - 03.09.2011, 21:39
Re: JFS MiniGames v3.0 - by Dolby - 03.09.2011, 21:41
Re: JFS MiniGames v3.0 - by histire - 03.09.2011, 21:46
Re: JFS MiniGames v3.0 - by JonathanFeitosa - 03.09.2011, 21:48
Re: JFS MiniGames v3.0 - by histire - 03.09.2011, 21:49
Re: JFS MiniGames v3.0 - by [R] ousenber [K] - 03.09.2011, 22:18
Re: JFS MiniGames v3.0 - by Ricop522 - 03.09.2011, 22:27
Re: JFS MiniGames v3.0 - by slim1000 - 03.09.2011, 22:37
Re: JFS MiniGames v3.0 - by Josma_cmd - 03.09.2011, 22:39
Re: JFS MiniGames v3.0 - by JonathanFeitosa - 03.09.2011, 22:42
Re: JFS MiniGames v3.0 - by slim1000 - 03.09.2011, 22:44
Re: JFS MiniGames v3.0 - by JonathanFeitosa - 03.09.2011, 22:45
Re: JFS MiniGames v3.0 - by Josma_cmd - 03.09.2011, 22:49
Re: JFS MiniGames v3.0 - by slim1000 - 03.09.2011, 22:50
Re: JFS MiniGames v3.0 - by Josma_cmd - 03.09.2011, 22:51
Re: JFS MiniGames v3.0 - by slim1000 - 03.09.2011, 22:52
Re: JFS MiniGames v3.0 - by JonathanFeitosa - 03.09.2011, 22:53
Re: JFS MiniGames v3.0 - by slim1000 - 03.09.2011, 22:56
Re: JFS MiniGames v3.0 - by JonathanFeitosa - 03.09.2011, 22:57
Re: JFS MiniGames v3.0 - by slim1000 - 03.09.2011, 23:01
Re: JFS MiniGames v3.0 - by histire - 03.09.2011, 23:03
Re: JFS MiniGames v3.0 - by JonathanFeitosa - 03.09.2011, 23:04
Re: JFS MiniGames v3.0 - by slim1000 - 03.09.2011, 23:05
Re: JFS MiniGames v3.0 - by histire - 03.09.2011, 23:06
Re: JFS MiniGames v3.0 - by JonathanFeitosa - 03.09.2011, 23:09
Re: JFS MiniGames v3.0 - by slim1000 - 03.09.2011, 23:11
Re: JFS MiniGames v3.0 - by Dolby - 03.09.2011, 23:11
Re: JFS MiniGames v3.0 - by JonathanFeitosa - 03.09.2011, 23:13
Re: JFS MiniGames v3.0 - by MaGnO_357 - 04.09.2011, 01:47
Re: JFS MiniGames v3.0 - by BrunoBSF - 04.09.2011, 01:59
Re: JFS MiniGames v3.0 - by Vai_Besta - 04.09.2011, 03:39
Re: JFS MiniGames v3.0 - by StrondA_ - 04.09.2011, 11:37
Re: JFS MiniGames v3.0 - by Wendell_. - 04.09.2011, 14:45
Re: JFS MiniGames v3.0 - by [R] ousenber [K] - 04.09.2011, 15:32
Re: JFS MiniGames v3.0 - by Miqueias Barros - 04.09.2011, 15:48
Re: JFS MiniGames v3.0 - by Luks_Stronda - 14.09.2011, 20:07
Re: JFS MiniGames v3.0 - by Dolby - 14.09.2011, 20:21

Forum Jump:


Users browsing this thread: 2 Guest(s)