Hi guys
My printHintText not work why ?
Code :
PHP Code:
for(new X = 1; X <= GetMaxClients(); X++)
{
//Drug Addict Plants Loop:
for(new D = 1; D < 6; D++)
{
//X = 32 possible players
//D = 5 possible plants
//XOrigins = Player Origin
//Looping through all players in this loop to see other drug origins!
if(DrugPlant[X][D][0] != 0.0)
{
TE_SetupBeamRingPoint(DrugPlant[X][D], 25.0, 1.0, g_modelLaser, g_modelHalo, 0, 10, 0.6, 5.0, 0.5, {255,0,0,255}, 10, 0);
TE_SendToClient(client);
Distz = GetVectorDistance(DrugPlant[X][D], ClientOrigin);
if(Distz < 50 && DrugPlant[X][D][0] != 0.0)
{
if(client == X)
{
PrintCenterText(client, "Drug Plant (%d grams) Press E to take the drugs!", DrugPlantWorth[X][D]);
}
else
{
decl String:Steal[64];
GetClientName(X, Steal, sizeof(Steal));
if(!IsPolice(client))
{
PrintCenterText(client, "%s's Drug Plant (%d grams) Press E to steal the drugs!", Steal, DrugPlantWorth[X][D]);
}
else if(IsPolice(client) || IsJustice(client))
{
PrintCenterText(client, "%s's Drug Plant (%d grams) Press E to destroy the drugs!", Steal, DrugPlantWorth[X][D]);
}
}
}
//Grams increasing randomly 5 percent of the time x32maxplayers:
decl Randq;
Randq = GetRandomInt(1, 100);
if(Randq > 94 && DrugPlantWorth[X][D] < 300)
{
DrugPlantWorth[X][D] += 1;
}
}
}
}