Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Credit
- */
- #define FILTERSCRIPT
- #include <a_samp>
- new Text:maj0;
- new Text:maj1;
- new Text:maj2;
- new Text:maj3;
- new Text:maj4;
- #if defined FILTERSCRIPT
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Maj");
- print("----------------------------------\n");
- }
- #endif
- public OnPlayerConnect(playerid)
- {
- maj0 = TextDrawCreate(471.500000, 106.655578, "usebox");
- TextDrawLetterSize(maj0, 0.000000, 33.006786);
- TextDrawTextSize(maj0, 185.000000, 0.000000);
- TextDrawAlignment(maj0, 1);
- TextDrawColor(maj0, 0);
- TextDrawUseBox(maj0, true);
- TextDrawBoxColor(maj0, 102);
- TextDrawSetShadow(maj0, 0);
- TextDrawSetOutline(maj0, 0);
- TextDrawFont(maj0, 0);
- maj1 = TextDrawCreate(273.500000, 117.833320, "Mise A Jour");
- TextDrawLetterSize(maj1, 0.569499, 2.410831);
- TextDrawAlignment(maj1, 1);
- TextDrawColor(maj1, -5963521);
- TextDrawSetShadow(maj1, 0);
- TextDrawSetOutline(maj1, 1);
- TextDrawBackgroundColor(maj1, 51);
- TextDrawFont(maj1, 0);
- TextDrawSetProportional(maj1, 1);
- maj2 = TextDrawCreate(214.500000, 164.500015, "-Systeme Essence~n~-Telephone~n~-Compteur Unique~n~-Faction NASA~n~-Mapping Pompier~n~-Job revue");
- TextDrawLetterSize(maj2, 0.330498, 1.360831);
- TextDrawAlignment(maj2, 1);
- TextDrawColor(maj2, -1);
- TextDrawSetShadow(maj2, 0);
- TextDrawSetOutline(maj2, 1);
- TextDrawBackgroundColor(maj2, 51);
- TextDrawFont(maj2, 1);
- TextDrawSetProportional(maj2, 1);
- maj3 = TextDrawCreate(234.500000, 274.750000, "____Utilisez la commande : /majoff ~n~ Pour pouvoir fermer les Mise A Jour.");
- TextDrawLetterSize(maj3, 0.351500, 1.845000);
- TextDrawAlignment(maj3, 1);
- TextDrawColor(maj3, -1);
- TextDrawSetShadow(maj3, 0);
- TextDrawSetOutline(maj3, 1);
- TextDrawBackgroundColor(maj3, 51);
- TextDrawFont(maj3, 1);
- TextDrawSetProportional(maj3, 1);
- maj4 = TextDrawCreate(268.500000, 356.999969, "Copyright Jeffrey Side");
- TextDrawLetterSize(maj4, 0.345499, 1.617498);
- TextDrawAlignment(maj4, 1);
- TextDrawColor(maj4, -1);
- TextDrawSetShadow(maj4, 0);
- TextDrawSetOutline(maj4, 1);
- TextDrawBackgroundColor(maj4, 51);
- TextDrawFont(maj4, 0);
- TextDrawSetProportional(maj4, 1);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/maj", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, -1, "{FF0000}[INFO]: {FFFFFF}Mise A Jour, pour fermer les mise a jour: /majoff");
- PlayerTextDrawShow(playerid, Text:maj0);
- PlayerTextDrawShow(playerid, Text:maj1);
- PlayerTextDrawShow(playerid, Text:maj2);
- PlayerTextDrawShow(playerid, Text:maj3);
- PlayerTextDrawShow(playerid, Text:maj4);
- return 1;
- }
- // sumir textdraw
- if (strcmp("/majoff", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, -1, "{FF0000}[INFO]: {FFFFFF}Mise A Jour fermée !" );
- PlayerTextDrawHide(playerid, Text:maj0);
- PlayerTextDrawHide(playerid, Text:maj1);
- PlayerTextDrawHide(playerid, Text:maj2);
- PlayerTextDrawHide(playerid, Text:maj3);
- PlayerTextDrawHide(playerid, Text:maj4);
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement