15.11.2010, 18:07
Como eu sou um homem de bom coraзгo, ta na mгo:
Existe uma funзгo chamada TextDrawShowForAll(TEXT); use-a, para nгo ficar enchendo de loopis
Existe uma funзгo chamada TextDrawShowForAll(TEXT); use-a, para nгo ficar enchendo de loopis
pawn Код:
/* Este й um GameFIX para Alpha RP se vocк conseguiu isto sem minha permissгo, parabйns (Y)
Vocк pode enfiar no rabo isso .-. */
#define FILTERSCRIPT
// Cores do /desenvolvedores
#define COR_LARANJA 0xF07A00FF
#define COR_BRANCO 0xFFFFFFFF
#define COR_VERMELHO 0xFF0000FF
#include <a_samp>
#include <a_players>
#if defined FILTERSCRIPT
//Textdraws
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
public OnFilterScriptInit()
{
print("ARP Fix 0.1 Carregado");
print("by Stewie");
DisableInteriorEnterExits();
EnableStuntBonusForAll(0);
ShowNameTags(1);
SetNameTagDrawDistance(40.0);
SetGameModeText("AlphaRP 0.1");
SendRconCommand("SP - RJ ARP MOD");
SendRconCommand("[BR] Alpha RolePlay SP/RJ [0.3b] [DEV]");
Textdraw0 = TextDrawCreate(646.000000, 436.000000, "ARP");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.500000, 1.100000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 50);
TextDrawTextSize(Textdraw0, -3.000000, 2.000000);
Textdraw1 = TextDrawCreate(20.000000, 436.000000, "alpharp.tk");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 3);
TextDrawLetterSize(Textdraw1, 0.500000, 1.000000);
TextDrawColor(Textdraw1, -1);
TextDrawSetOutline(Textdraw1, 1);
TextDrawSetProportional(Textdraw1, 1);
Textdraw2 = TextDrawCreate(594.000000, 437.000000, "0.1.2");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 1);
TextDrawLetterSize(Textdraw2, 0.500000, 1.000000);
TextDrawColor(Textdraw2, -1);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 1);
TextDrawShowForAll(Textdraw2);
return 1;
}
public OnFilterScriptExit()
{
TextDrawHideForAll(Textdraw0);
TextDrawDestroy(Textdraw0);
TextDrawHideForAll(Textdraw1);
TextDrawDestroy(Textdraw1);
TextDrawHideForAll(Textdraw2);
TextDrawDestroy(Textdraw2);
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/desenvolvedores", cmdtext, true) == 0)
{
SendClientMessage(playerid, COR_LARANJA, " Desenvolvedores ");
SendClientMessage(playerid, COR_BRANCO, "|===================================|");
SendClientMessage(playerid, COR_VERMELHO, "| - Fundador Stewie|");
SendClientMessage(playerid, COR_VERMELHO, "| - Fundador Victor|");
SendClientMessage(playerid, COR_BRANCO, "|===================================|");
return 1;
}
return 0;
}
#endif