[FilterScript] Rockstar Logo
#1

Rockstar Logo
Description

A simple textdraw showing Rockstar's logo.

Media



Adapted from: Click here.

Note: Textdraw is found on the bottom right of your screen.

Bugs

-

Code / Script

Note: It's a short code, that's why i posted it here. Else, i was going to post it on Github or Pastebin!

PHP код:
/*
    Author: AjaxM
    Textdraws: 7
    Date: 14/01/2017 20:23
        Last Updated: 12/01/2017 12:15
        Changelogs: (v2)
       + Supports only 4 Textdraws
       + Textdraws now gets destroyed when a player disconnects 
       + The logo is relatively bigger then the previous version
       + Textdraw 'R' is now red in color 
       Total Changes: 4
*/
new Text:TDEditor_TD[4];
public 
OnFilterScriptInit()
{
    print(
"\n--------------------------------------");
    print(
"Rockstar Logo (v2) by AjaxM has loaded...");
    print(
"--------------------------------------\n");
    
    
TDEditor_TD[0] = TextDrawCreate(579.599975361.733520"BlackBox");
    
TextDrawLetterSize(TDEditor_TD[0], 0.0000003.999998);
    
TextDrawTextSize(TDEditor_TD[0], 621.0000000.000000);
    
TextDrawAlignment(TDEditor_TD[0], 1);
    
TextDrawColor(TDEditor_TD[0], -1);
    
TextDrawUseBox(TDEditor_TD[0], 1);
    
TextDrawBoxColor(TDEditor_TD[0], 255);
    
TextDrawSetShadow(TDEditor_TD[0], 0);
    
TextDrawSetOutline(TDEditor_TD[0], 0);
    
TextDrawBackgroundColor(TDEditor_TD[0], 255);
    
TextDrawFont(TDEditor_TD[0], 1);
    
TextDrawSetProportional(TDEditor_TD[0], 1);
    
TextDrawSetShadow(TDEditor_TD[0], 0);
    
TDEditor_TD[1] = TextDrawCreate(582.799743365.466735"YellowBox");
    
TextDrawLetterSize(TDEditor_TD[1], 0.0000003.119998);
    
TextDrawTextSize(TDEditor_TD[1], 618.0000000.000000);
    
TextDrawAlignment(TDEditor_TD[1], 1);
    
TextDrawColor(TDEditor_TD[1], -1);
    
TextDrawUseBox(TDEditor_TD[1], 1);
    
TextDrawBoxColor(TDEditor_TD[1], -65281);
    
TextDrawSetShadow(TDEditor_TD[1], 0);
    
TextDrawSetOutline(TDEditor_TD[1], 0);
    
TextDrawBackgroundColor(TDEditor_TD[1], 255);
    
TextDrawFont(TDEditor_TD[1], 1);
    
TextDrawSetProportional(TDEditor_TD[1], 1);
    
TextDrawSetShadow(TDEditor_TD[1], 0);
    
TDEditor_TD[2] = TextDrawCreate(586.799987361.733367"R");
    
TextDrawLetterSize(TDEditor_TD[2], 0.6127992.772269);
    
TextDrawAlignment(TDEditor_TD[2], 1);
    
TextDrawColor(TDEditor_TD[2], -16776961);
    
TextDrawSetShadow(TDEditor_TD[2], 0);
    
TextDrawSetOutline(TDEditor_TD[2], 0);
    
TextDrawBackgroundColor(TDEditor_TD[2], 255);
    
TextDrawFont(TDEditor_TD[2], 2);
    
TextDrawSetProportional(TDEditor_TD[2], 1);
    
TextDrawSetShadow(TDEditor_TD[2], 0);
    
TDEditor_TD[3] = TextDrawCreate(582.201416376.359985"[]");
    
TextDrawLetterSize(TDEditor_TD[3], 0.5592001.965866);
    
TextDrawAlignment(TDEditor_TD[3], 1);
    
TextDrawColor(TDEditor_TD[3], 65535);
    
TextDrawSetShadow(TDEditor_TD[3], 0);
    
TextDrawSetOutline(TDEditor_TD[3], 0);
    
TextDrawBackgroundColor(TDEditor_TD[3], 255);
    
TextDrawFont(TDEditor_TD[3], 2);
    
TextDrawSetProportional(TDEditor_TD[3], 1);
    
TextDrawSetShadow(TDEditor_TD[3], 0);
    return 
1;
}
public 
OnFilterScriptExit()
{
    print(
"\n--------------------------------------");
    print(
"Rockstar Logo by AjaxM has unloaded...");
    print(
"--------------------------------------\n");
    
    
TextDrawDestroy(TDEditor_TD[0]);
    
TextDrawDestroy(TDEditor_TD[1]);
    
TextDrawDestroy(TDEditor_TD[2]);
    
TextDrawDestroy(TDEditor_TD[3]);
    return 
1;
}
public 
OnPlayerConnect(playerid)
{
    
TextDrawShowForPlayer(playeridTDEditor_TD[0]);
    
TextDrawShowForPlayer(playeridTDEditor_TD[1]);
    
TextDrawShowForPlayer(playeridTDEditor_TD[2]);
    
TextDrawShowForPlayer(playeridTDEditor_TD[3]);
    return 
1;
}
public 
OnPlayerDisconnect(playeridreason)
{
    
TextDrawDestroy(TDEditor_TD[0]);
    
TextDrawDestroy(TDEditor_TD[1]);
    
TextDrawDestroy(TDEditor_TD[2]);
    
TextDrawDestroy(TDEditor_TD[3]);
    return 
1;

Credit

AjaxM - Designed this textdraw
Kalcor & Team - SA-MP
Rockstar - GTA San Andreas
Adri1 - Textdraw Editor

Enjoy.
Reply


Messages In This Thread
Rockstar Logo - by AjaxM - 14.01.2017, 15:39
Re: Rockstar Logo - by PhoneixViper - 14.01.2017, 19:37
Re: Rockstar Logo - by RyderX - 14.01.2017, 19:48
Re: Rockstar Logo - by AjaxM - 15.01.2017, 05:40
Re: Rockstar Logo - by Astralis - 15.01.2017, 06:33
Re: Rockstar Logo - by AjaxM - 15.01.2017, 07:35
Re: Rockstar Logo - by muzammilfreeman - 15.01.2017, 07:43
Re: Rockstar Logo - by Micko123 - 15.01.2017, 09:22
Re: Rockstar Logo - by Bolex_ - 15.01.2017, 11:06
Re: Rockstar Logo - by AjaxM - 15.01.2017, 12:31

Forum Jump:


Users browsing this thread: 3 Guest(s)