03.02.2014, 18:46
Testa assim pra ver
PHP код:
function Marker()
{
static rand,Float:x,Float:y,Float:z;
for(new i; i < MAX_PLAYERS;i++)
{
GetPlayerPos(i,x,y,z);
if(Team[i] == ZOMBIE || Team[i] == HUMAN)
{
for(new f; f < MAX_PLAYERS;f++)
{
if(Team[f] == ZOMBIE || Team[f] == HUMAN)
{
rand = random(3);
if(rand == 1)
{
SetPlayerMarkerForPlayer(f,i,purple);
}
if(PInfo[f][ZPerk] == 5)
{
if(Team[i] == ZOMBIE)
{
SetPlayerMarkerForPlayer(f,i,corzumbi);
}
}
}
}
}
}
return 1;
}