forward CheckAreasServer();
public CheckAreasServer()
{
foreach(Player, i)
{
if(IsPlayerInPlace(i, 481.4920, -2393.4478, 671.3785, -2243.2761)) // Area de Pesca
{
if(AreadePesca[i] == false)
{
TextDrawSetString(Server_Areas[i], "~b~Area de Pesca: ~y~/JogarRede");
TextDrawShowForPlayer(i, Server_Areas[i]);
AreadePesca[i] = true;
}
}
else
{
if(AreadePesca[i] == true)
{
TextDrawHideForPlayer(i, Server_Areas[i]);
AreadePesca[i] = false;
}
}
if(IsPlayerInPlace(i, -405.1553, -1681.6285, -505.8031, -1800.3656)) // Area de Pesca
{
if(AreadeCaca[i] == false)
{
TextDrawSetString(Server_Areas[i], "~b~Area de Caca: ~y~/Cacar");
TextDrawShowForPlayer(i, Server_Areas[i]);
AreadeCaca[i] = true;
}
}
else
{
if(AreadeCaca[i] == true)
{
TextDrawHideForPlayer(i, Server_Areas[i]);
AreadeCaca[i] = false;
}
}
}
SetTimer("CheckAreasServer", 1000, false);
return 1;
}
TextDrawShowForPlayer(playerid, Server_Areas[i]);
OnPlayerSpawn
TextDrawShowForPlayer(playerid, Score);
OnPlayerDeath
TextDrawHideForPlayer(playerid, Score);
TextDrawSetString
format(STR, 100, "~w~%s ~y~%s ~b~%s",Time[playerid],Classes[playerid],Rank[playerid]);
TextDrawSetString(abaixo[u],STR);
OnGameModeInit
seutext = TextDrawCreate(500.000000, 6.000000, "seutext");
TextDrawBackgroundColor(seutext, 255);
TextDrawFont(seutext, 1);
TextDrawLetterSize(seutext, 0.350000, 1.100000);
TextDrawColor(seutext, -1);
TextDrawSetOutline(seutext, 0);
TextDrawSetProportional(seutext, 1);
TextDrawSetShadow(seutext, 1);
TextDrawShowForPlayer(playerid, Server_Areas[i]);
isso faz com que a textdraw seja mostrada para o player , tipo: pawn Код:
pawn Код:
Hide: esconde @zDark pawn Код:
pawn Код:
pawn Код:
ta meio confuso mas eu acho que da pra entender (Ps: primeira vez) |
public OnGameModeInit()
{
SetTimer("CheckAreasServer", 1000, false);