21.08.2015, 11:17
Hi All. iHave Problйm in Showing a Textraw
Must when a Donator (Vip) Login the Textdraw mUst Show For all
Full Textdraws
and this is onPLAYERCONNET
tHIS in Ongamemodint
Please Help and +rep
Must when a Donator (Vip) Login the Textdraw mUst Show For all
Full Textdraws
Код:
Textdraw18 = TextDrawCreate(5.555572, 424.148315, "~y~Welcome To X1treme Stunting"); TextDrawLetterSize(Textdraw18, 0.298330, 0.967409); TextDrawAlignment(Textdraw18, 1); TextDrawColor(Textdraw18, -1); TextDrawSetShadow(Textdraw18, 0); TextDrawSetOutline(Textdraw18, 1); TextDrawBackgroundColor(Textdraw18, 51); TextDrawFont(Textdraw18, 1); TextDrawSetProportional(Textdraw18, 1); Textdraw19 = TextDrawCreate(5.599996, 422.613372, ""); TextDrawLetterSize(Textdraw19, 0.282799, 1.316266); TextDrawAlignment(Textdraw19, 1); TextDrawSetShadow(Textdraw19, 0); TextDrawSetOutline(Textdraw19, 0); TextDrawBackgroundColor(Textdraw19, 51); TextDrawFont(Textdraw19, 1); TextDrawSetProportional(Textdraw19, 1);
Код:
forward Donator(playerid); public Donator(playerid) { foreach(Player, i) { if(IsPlayerConnected(i)) { if (Account[i][VipLevel] > 1)// cce Textdraw19 = TextDrawCreate(5.555572, 424.148315, "~b~[DONATOR]"); TextDrawLetterSize(Textdraw19, 0.298330, 0.967409); TextDrawAlignment(Textdraw19, 1); TextDrawColor(Textdraw19, -1); TextDrawSetShadow(Textdraw19, 0); TextDrawSetOutline(Textdraw19, 1); TextDrawBackgroundColor(Textdraw19, 51); TextDrawFont(Textdraw19, 1); TextDrawSetProportional(Textdraw19, 1); } } return 1; }
Код:
if(Account[playerid][VipLevel] >= 1) { new name[MAX_PLAYER_NAME], string[100]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "~b~[DONATOR] %s has joined the game.", name); TextDrawSetString(Textdraw18, string); TextDrawShowForAll(Textdraw18); } SetTimerEx("Donator", 10000, true, "i", playerid); }
Код:
SetTimer("RandomMessage",5000,1);
PHP код:
new RandomMessages[][] =
{
"~y~.....",
};
public RandomMessage()
{
TextDrawSetString(Textdraw18, RandomMessages[random(sizeof(RandomMessages))]);
return 1;
}