Textdraw Help
#1

When i put my Textdraw to gamemode its not working.I make everything above it but still no working!
Please help me i will post the codes

pawn Код:
// TextDraw developed using Zamaroht's Textdraw Editor 1.0

// On top of script:
new Text:Textdraw0;
new Text:Textdraw1;

// In OnGameModeInit prefferably, we procced to create our textdraws:
Textdraw0 = TextDrawCreate(175.000000, 424.000000, "General Rocket Party");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 2);
TextDrawLetterSize(Textdraw0, 0.500000, 1.700000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 0);

Textdraw1 = TextDrawCreate(502.000000, 10.000000, "G.R.P");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 3);
TextDrawLetterSize(Textdraw1, 0.500000, 1.000000);
TextDrawColor(Textdraw1, -16776961);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);

// You can now use TextDrawShowForPlayer(-ForAll), TextDrawHideForPlayer(-ForAll) and
// TextDrawDestroy functions to show, hide, and destroy the textdraw.
Reply
#2

TextDrawShowForPlayer();

When you want.
Reply
#3

to put it in PlayerConnect?
Reply
#4

pawn Код:
public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else

main()
{
    print("\n----------------------------------");
    print("|                                   |");
    print("|      GENERAL ROCKET PARTY         |");
    print("|                                   |");
    print("-------------------------------------\n");
}
#endif
new NavyBase;
new Train;
new Text:Textdraw0;

public OnGameModeInit()
{
    // Don't use these lines if it's a filterscript
    SetGameModeText("STUNT/FREEROAM/DM");
    AddPlayerClass(285,1322.1700,352.1799,19.5547,251.8506,0,0,0,0,0,0); // spanw1
    AddPlayerClass(287,1352.1089,348.5364,20.4969,76.2704,0,0,0,0,0,0); // spawn2
    AddPlayerClass(286,1311.0826,330.0768,19.9141,203.6521,0,0,0,0,0,0); // spawn3
    AddPlayerClass(274,1324.2913,286.1208,20.0452,333.3289,0,0,0,0,0,0); // spawn4
    AddPlayerClass(112,1331.3750,220.0563,19.5547,341.1291,0,0,0,0,0,0); // spawn6
    AddPlayerClass(147,2840.6880,1291.1045,11.3906,89.3444,0,0,0,0,0,0); // spawnpos 7
    AddPlayerClass(117,2839.7432,1285.6504,11.3906,90.1510,0,0,0,0,0,0); // spawn pos
    AddPlayerClass(120,2839.9619,1295.9490,11.3906,90.1510,0,0,0,0,0,0); // spawnpos9
    AddPlayerClass(125,2848.6396,1294.0634,11.3906,173.6916,0,0,0,0,0,0); // spawnpos10
    AddPlayerClass(127,2848.5994,1286.7906,11.3906,349.5046,0,0,0,0,0,0); // spawnpos11
    NavyBase = GangZoneCreate(1097.72, 0, 1529.802, 537.1823);
    SendRconCommand("mapname LS/SF/LV");
    Train = GangZoneCreate(2732.623, 1167.788, 2861.08, 1448.057);
    //Textdraws
    Textdraw0 = TextDrawCreate(175.000000, 424.000000, "General Rocket Party");
    TextDrawBackgroundColor(Textdraw0, 255);
    TextDrawFont(Textdraw0, 2);
    TextDrawLetterSize(Textdraw0, 0.500000, 1.700000);
    TextDrawColor(Textdraw0, -1);
    TextDrawSetOutline(Textdraw0, 1);
    TextDrawSetProportional(Textdraw0, 0);
    return 1;
}

public OnGameModeExit()
{
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 1312.7732,332.0873,25.6946);
    SetPlayerCameraPos(playerid, 1310.6516,339.8167,25.6946);
    SetPlayerCameraLookAt(playerid, 1311.9548,331.6893,25.6946);
    return 1;
}

public OnPlayerConnect(playerid)
{
    new string[120], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
    format(string,sizeof string,"{C3C3C3}%s has joined the server. Welcome!",pName);
    SendClientMessageToAll(0xFFFFFFAA,string);
    ShowPlayerDialog(playerid, 2, DIALOG_STYLE_MSGBOX,"{AFE7FF}Server Rules", "{AFE7FF}Rule 1:No Hacking\nRule 2:No Imature Behavioure\nRule 3:No Racism\nRule 4:Respect all players\nRule 5:Do not be abusive to Admins or KICK/BAN\nRule 6:Have Fun!\nDecline our rules you will be KICKED!", "Accept", "Decline");
    GameTextForPlayer(playerid,"~n~~n~~n~~n~~r~Welcome to GRP~n~General Rocket Party",2000,5);
    TextDrawShowForPlayer(playerid,Textdraw0);
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    return 1;
}
this is my codes help me please
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)