Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Creditos:
- Generador De Textdraws by Zamaroht's
- Idea y Realización Kingworld - CCordoba
- IP: 184.22.115.52:9999 (Pronto)
- */
- #include <a_samp>
- new Showing[MAX_PLAYERS];
- new Text:Textdraw0;
- new Text:Textdraw1;
- new Text:Textdraw2;
- new Text:Textdraw3;
- public OnFilterScriptInit()
- {
- print("Textdraw file generated by");
- print(" Zamaroht's textdraw editor was loaded.");
- // Create the textdraws:
- Textdraw0 = TextDrawCreate(0.000000, 0.000000, "ld_none:tvcorn");
- TextDrawBackgroundColor(Textdraw0, 255);
- TextDrawFont(Textdraw0, 4);
- TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
- TextDrawColor(Textdraw0, -1);
- TextDrawSetOutline(Textdraw0, 0);
- TextDrawSetProportional(Textdraw0, 1);
- TextDrawSetShadow(Textdraw0, 1);
- TextDrawUseBox(Textdraw0, 1);
- TextDrawBoxColor(Textdraw0, 255);
- TextDrawTextSize(Textdraw0, 316.000000, 193.000000);
- Textdraw1 = TextDrawCreate(640.000000, 0.000000, "ld_none:tvcorn");
- TextDrawBackgroundColor(Textdraw1, 255);
- TextDrawFont(Textdraw1, 4);
- TextDrawLetterSize(Textdraw1, 0.500000, 1.000000);
- TextDrawColor(Textdraw1, -1);
- TextDrawSetOutline(Textdraw1, 0);
- TextDrawSetProportional(Textdraw1, 1);
- TextDrawSetShadow(Textdraw1, 1);
- TextDrawUseBox(Textdraw1, 1);
- TextDrawBoxColor(Textdraw1, 255);
- TextDrawTextSize(Textdraw1, -324.000000, 206.000000);
- Textdraw2 = TextDrawCreate(640.000000, 449.000000, "ld_none:tvcorn");
- TextDrawBackgroundColor(Textdraw2, 255);
- TextDrawFont(Textdraw2, 4);
- TextDrawLetterSize(Textdraw2, 0.500000, 1.000000);
- TextDrawColor(Textdraw2, -1);
- TextDrawSetOutline(Textdraw2, 0);
- TextDrawSetProportional(Textdraw2, 1);
- TextDrawSetShadow(Textdraw2, 1);
- TextDrawUseBox(Textdraw2, 1);
- TextDrawBoxColor(Textdraw2, 255);
- TextDrawTextSize(Textdraw2, -324.000000, -258.000000);
- Textdraw3 = TextDrawCreate(-2.000000, 451.000000, "ld_none:tvcorn");
- TextDrawBackgroundColor(Textdraw3, 255);
- TextDrawFont(Textdraw3, 4);
- TextDrawLetterSize(Textdraw3, 0.500000, 1.000000);
- TextDrawColor(Textdraw3, -1);
- TextDrawSetOutline(Textdraw3, 0);
- TextDrawSetProportional(Textdraw3, 1);
- TextDrawSetShadow(Textdraw3, 1);
- TextDrawUseBox(Textdraw3, 1);
- TextDrawBoxColor(Textdraw3, 255);
- TextDrawTextSize(Textdraw3, 344.000000, -276.000000);
- return 1;
- }
- public OnFilterScriptExit()
- {
- TextDrawHideForAll(Textdraw0);
- TextDrawDestroy(Textdraw0);
- TextDrawHideForAll(Textdraw1);
- TextDrawDestroy(Textdraw1);
- TextDrawHideForAll(Textdraw2);
- TextDrawDestroy(Textdraw2);
- TextDrawHideForAll(Textdraw3);
- TextDrawDestroy(Textdraw3);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- Showing[playerid] = 0;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(!strcmp(cmdtext, "/seguridad"))
- {
- if(Showing[playerid] == 1)
- {
- Showing[playerid] = 0;
- TextDrawHideForPlayer(playerid, Textdraw0);
- TextDrawHideForPlayer(playerid, Textdraw1);
- TextDrawHideForPlayer(playerid, Textdraw2);
- TextDrawHideForPlayer(playerid, Textdraw3);
- }
- else
- {
- Showing[playerid] = 1;
- TextDrawShowForPlayer(playerid, Textdraw0);
- TextDrawShowForPlayer(playerid, Textdraw1);
- TextDrawShowForPlayer(playerid, Textdraw2);
- TextDrawShowForPlayer(playerid, Textdraw3);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment