// OnGameModeInit:
new spawn1;
// OnGameModeInit
public OnGameModeInit() {
spawn1 = GangZoneCreate(1680,007, -1958,204, 1839,726, -1863,458);
return 1;
}
// Player Spawn
public OnPlayerSpawn(playerid) {
GangZoneShowForPlayer(playerid, spawn1, 0x00FF8038);
return 1;
}
|
Nгo apareceu pra todos ou sу pro player ? Se vocк quer que apareзa pra todos use
https://sampwiki.blast.hk/wiki/GangZoneFlashForAll |
new Float:pHP = 100.0;
|
Use a notaзгo correta para nъmeros flutuantes, onde a parte fracionбria й separada por um . (ponto).
PHP код:
|
spawn1 = GangZoneCreate(1680,007, -1958,204, 1839,726, -1863,458);
new GZ; // topo do gm
public OnGameModeInit()
{
GZ = GangZoneCreate(0.0, 0.0, 0.0, 0.0);
// As cordenadas tem que seguir esse padrгo: https://sampwiki.blast.hk/wiki/GangZoneCreate
return 1;
}
public OnPlayerSpawn(playerid)
{
GangZoneShowForPlayer(playerid, GZ, /*COR*/);
return 1;
}
public OnGameModeExit()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GangZoneHideForPlayer(i, GZ);
}
}
return 1;
}
|
Tenta isso:
Код:
new GZ; // topo do gm
public OnGameModeInit()
{
GZ = GangZoneCreate(0.0, 0.0, 0.0, 0.0);
// As cordenadas tem que seguir esse padrгo: https://sampwiki.blast.hk/wiki/GangZoneCreate
return 1;
}
public OnPlayerSpawn(playerid)
{
GangZoneShowForPlayer(playerid, GZ, /*COR*/);
return 1;
}
public OnGameModeExit()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GangZoneHideForPlayer(i, GZ);
}
}
return 1;
}
Nгo se coloca , em nъmeros decimais, se poe 0.00, 0.00, 0.00, 0.00 |