Cara eu estou pedindo ajuda porque nгo sei entende. Nгo podeia me ajudar?
|
new Text:TDEditor_TD[3]; TDEditor_TD[0] = TextDrawCreate(77.558792, 425.368743, "15:00"); TextDrawLetterSize(TDEditor_TD[0], 0.400000, 1.600000); TextDrawAlignment(TDEditor_TD[0], 1); TextDrawColor(TDEditor_TD[0], -1); 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(50.423583, 425.152618, "UP:"); TextDrawLetterSize(TDEditor_TD[1], 0.400470, 1.600000); TextDrawAlignment(TDEditor_TD[1], 1); TextDrawColor(TDEditor_TD[1], -1); 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); TextDrawSetSelectable(TDEditor_TD[1], true); TDEditor_TD[2] = TextDrawCreate(46.329319, 426.750610, "box"); TextDrawLetterSize(TDEditor_TD[2], 0.000000, 1.85881; TextDrawTextSize(TDEditor_TD[2], 120.799926, 0.000000); TextDrawAlignment(TDEditor_TD[2], 1); TextDrawColor(TDEditor_TD[2], -1); TextDrawUseBox(TDEditor_TD[2], 1); TextDrawBoxColor(TDEditor_TD[2], 1768515945); TextDrawSetShadow(TDEditor_TD[2], 0); TextDrawSetOutline(TDEditor_TD[2], 0); TextDrawBackgroundColor(TDEditor_TD[2], 255); TextDrawFont(TDEditor_TD[2], 2); TextDrawSetProportional(TDEditor_TD[2], 0); TextDrawSetShadow(TDEditor_TD[2], 0); |
Sou novo em PAWNO sabe, esse ai й o Textdraw lб poderia ajeitar para mim apenas colocar no servidor ia me ajudar muito eu acho mais faзil para mim aprender depois.
|
new
UpTimer[MAX_PLAYERS],
PlayerUpCount[MAX_PLAYERS],
PlayerExperience[MAX_PLAYERS]
;
public OnPlayerDisconnect(playerid, reason)
{
KillTimer(UpTimer[playerid]);
PlayerUpCount[playerid] = -1;
PlayerExperience[playerid] = 0;
return 1;
}
public OnPlayerSpawn(playerid)
{
UpTimer[playerid] = SetTimerEx("PlayerUPTimer", 1000, true, "d", playerid);
return 1;
}
forward PlayerUPTimer(playerid);
public PlayerUPTimer(playerid)
{
PlayerUpCount[playerid]--;
new str[19];
format(str, sizeof(str), "UP: %02d:%02d:%02d", PlayerUpCount[playerid]/3600, (PlayerUpCount[playerid] % 3600)/60, PlayerUpCount[playerid] % 60);
PlayerTextDrawSetString(playerid, PlayerText:text, str);
if(PlayerUpCount[playerid] <= 0)
{
SendClientMessage(playerid, -1, "UP");
PlayerExperience[playerid]++;
PlayerUpCount[playerid] = 900;
}
return 1;
}