19.05.2015, 19:14
To com poblema na TextDrawSetString quando entro na GangZone ele nгo aparece o texdraw, Codigo:
OBS: TextDrawSetString sу parece na area de pesca, Agora o de baixo area de caзa nгo aparece o TextDrawSetString.
OBS: TextDrawSetString sу parece na area de pesca, Agora o de baixo area de caзa nгo aparece o TextDrawSetString.
PHP код:
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;
}