Clickable TextDraw Problem

Započeo 6YuKiMuRo9
17. Mar. 2018.
654
pregleda
3
postova
N.aMx
4
Enforcer
17. Mar. 2018.
Problem(error/warning): Nista to
Dio skripte: [ pawn ]Nista to[ /pawn ]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]nista to[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): https://imgur.com/a/XB6ma
Luk@ ebo li te ovaj formular ni za kicmu nije hahaha <3 Slmse brt moi dodaj jos koji...
Ovako:
Igrac kada stisne TD ono izvrsi TD, ali ja sam dodao i za TD i ono kad stisnem njega ne uradi nista ali kada stisnem TD izvrsi i za TD pa onda za TD
U pitanju je LD_SPAC:WHITE, ako si botic ne odgovaraj ni Harexe nije znao resit...
ZNACI NE MOZE BIT DO SIZE-a
PLAYER TD-OVI SU TKD NIJE DO TOGA
SELECTABLE SU OBA
PROVERIO SAM DOBAR JE
TerzaScripting
5
Underboss
17. Mar. 2018.
Posalji deo skripte kad klikne textdrawove i gde se kreiraju
N.aMx
4
Enforcer
17. Mar. 2018.
stock KreirajTextDrawove(playerid)
{
PlayerGameModeTD = CreatePlayerTextDraw(playerid, 229.341476, 194.433486, "loadsc9:loadsc9");
PlayerTextDrawTextSize(playerid, PlayerGameModeTD, 70.000000, 70.000000);
PlayerTextDrawAlignment(playerid, PlayerGameModeTD, 1);
PlayerTextDrawColor(playerid, PlayerGameModeTD, -1);
PlayerTextDrawSetShadow(playerid, PlayerGameModeTD, 0);
PlayerTextDrawBackgroundColor(playerid, PlayerGameModeTD, 255);
PlayerTextDrawFont(playerid, PlayerGameModeTD, 4);
PlayerTextDrawSetProportional(playerid, PlayerGameModeTD, 0);
PlayerTextDrawSetSelectable(playerid, PlayerGameModeTD, true);

PlayerGameModeTD = CreatePlayerTextDraw(playerid, 346.343414, 194.433486, "loadsc7:loadsc7");
PlayerTextDrawTextSize(playerid, PlayerGameModeTD, 70.000000, 70.000000);
PlayerTextDrawAlignment(playerid, PlayerGameModeTD, 1);
PlayerTextDrawColor(playerid, PlayerGameModeTD, -1);
PlayerTextDrawSetShadow(playerid, PlayerGameModeTD, 0);
PlayerTextDrawBackgroundColor(playerid, PlayerGameModeTD, 255);
PlayerTextDrawFont(playerid, PlayerGameModeTD, 4);
PlayerTextDrawSetProportional(playerid, PlayerGameModeTD, 0);
PlayerTextDrawSetSelectable(playerid, PlayerGameModeTD, true);

PlayerGameModeTD = CreatePlayerTextDraw(playerid, 387.752868, 249.733398, "ARENA");
PlayerTextDrawLetterSize(playerid, PlayerGameModeTD, 0.300000, 1.799999);
PlayerTextDrawAlignment(playerid, PlayerGameModeTD, 1);
PlayerTextDrawColor(playerid, PlayerGameModeTD, -1);
PlayerTextDrawSetShadow(playerid, PlayerGameModeTD, 0);
PlayerTextDrawBackgroundColor(playerid, PlayerGameModeTD, 255);
PlayerTextDrawFont(playerid, PlayerGameModeTD, 3);
PlayerTextDrawSetProportional(playerid, PlayerGameModeTD, 1);
PlayerTextDrawSetSelectable(playerid, PlayerGameModeTD, true);

PlayerGameModeTD = CreatePlayerTextDraw(playerid, 252.151885, 249.733398, "freeroam");
PlayerTextDrawLetterSize(playerid, PlayerGameModeTD, 0.300000, 1.799999);
PlayerTextDrawAlignment(playerid, PlayerGameModeTD, 1);
PlayerTextDrawColor(playerid, PlayerGameModeTD, -1);
PlayerTextDrawSetShadow(playerid, PlayerGameModeTD, 0);
PlayerTextDrawBackgroundColor(playerid, PlayerGameModeTD, 255);
PlayerTextDrawFont(playerid, PlayerGameModeTD, 3);
PlayerTextDrawSetProportional(playerid, PlayerGameModeTD, 1);
PlayerTextDrawSetSelectable(playerid, PlayerGameModeTD, true);
return 1;
}

OPC se kreira, nisam bot kao ti beboo <3

EDIT: Eo ti click al nie do toga -_-
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
if(playertextid == PlayerGameModeTD)
{
TogglePlayerSpectating(playerid, false);
CancelSelectTextDraw(playerid);
new rand = random(sizeof(FRRandSpawn));
SetSpawnInfo(playerid, 0, 1+random(298), FRRandSpawn, FRRandSpawn, FRRandSpawn, random(280), 24, 9999, 25, 9999, 34, 9999);
SpawnPlayer(playerid);

World = 1;
PlayerIsInArena = false;
PlayerIsInFreeroam = true;

for(new i = 0; i < 7; i++)
{
TextDrawHideForPlayer(playerid, GameModeTD);
}

for(new j = 0; j < 4; j++)
{
PlayerTextDrawHide(playerid, PlayerGameModeTD);
}

Info(playerid, "Ulazite u Freeroam DM...");
Info(playerid, "Komande: /weapon");
}
if(playertextid == PlayerGameModeTD)
{
CancelSelectTextDraw(playerid);
PlayerIsInArena = true;
PlayerIsInFreeroam = false;
World = 2;

SetSpawnInfo(playerid, 0, 1+random(298), 1710.433715, -1669.379272, 20.225049, random(280), -1, -1, -1, -1, -1, -1);
SpawnPlayer(playerid);

Info(playerid, "Ulazite u Arena DM...");
Info(playerid, "Komande: /dm /duel");

for(new i = 0; i < 7; i++)
{
TextDrawHideForPlayer(playerid, GameModeTD);
}

for(new j = 0; j < 4; j++)
{
PlayerTextDrawHide(playerid, PlayerGameModeTD);
}
}
return 1;
}

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha