How to set a checkpoint for everyone?
#1

Why isn't this working

Код:
public SpawnFire()
{
    new string[128];
	new rand = random(sizeof(gFireSpawn));
	AddFire(gFireSpawn[rand][0], gFireSpawn[rand][1], gFireSpawn[rand][2]);
	CreateDynamicCP(gFireSpawn[rand][0],gFireSpawn[rand][1],gFireSpawn[rand][2],10.0,-1,-1,-1,2000);
	format(string, sizeof(string), "A FIRE HAS BROKEN OUT!");
	SendClientMessageToAll(COLOR_NICERED,string);
	return 1;
}
Sometimes I see the checkpoint sometimes I don't...... I see it only when I get close.... enough usually
Reply
#2

OnGameModeInIt i beleive.
Reply
#3

I don't think so....I tried this... and called it in gamemodeinit but no luck still have to get close to even see it.

Thanks though.

Please help!

Код:
public OnFilterScriptInit()
{
	SetTimer("SpawnFire",60000,true);
	new rand = random(sizeof(gFireSpawn));
	newfire = CreateDynamicCP(gFireSpawn[rand][0], gFireSpawn[rand][1], gFireSpawn[rand][2], 15.00, -1, -1, -1, 100.0);
	TogglePlayerDynamicCP(-1, newfire, 0);
Код:
public SpawnFire()
{
    new string[128];
	new rand = random(sizeof(gFireSpawn));
	AddFire(gFireSpawn[rand][0], gFireSpawn[rand][1], gFireSpawn[rand][2]);
	TogglePlayerDynamicCP(-1, newfire, 1);
	format(string, sizeof(string), "A FIRE HAS BROKEN OUT!");
	SendClientMessageToAll(COLOR_NICERED,string);
	return 1;
}
Reply
#4

pawn Код:
for(new i=0;i<MAX_PLAYERS;i++) // i believe
Reply
#5

Код:
public SpawnFire()
{
    new string[128];
	new rand = random(sizeof(gFireSpawn));
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		AddFire(gFireSpawn[rand][0], gFireSpawn[rand][1], gFireSpawn[rand][2]);
		CreateDynamicCP(gFireSpawn[rand][0],gFireSpawn[rand][1],gFireSpawn[rand][2],10.0,-1,-1,-1,2000);
		format(string, sizeof(string), "A FIRE HAS BROKEN OUT!");
		SendClientMessageToAll(COLOR_NICERED,string);
		return 1;
	}
	return 1;
}
thank you very much!!!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)