Jump to content
  • 0

Pot face un killer pe timp?


florin

Question

Am functia [pawn] KillTimer(Speedoff);

for(new forplayerid; forplayerid < MAX_PLAYERS; forplayerid++)

{

DeletePlayer3DTextLabel(forplayerid, speedo3Dtext);

}

return true;[/pawn]

El omoara la 3D dar as vrea sa il omoare mai repede pot pune un timer?

modelcopiacopia.png

 wde [We Drift Everywhere] clan!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Ce nai inteles eu am 3d speedometer si 3d ala dispare la o secunda dupa ce ma dau jos din masina eu as vrea sa dispara la o jumatete de secunda dupa ce ma dau jos din masina si ma gandeam sa ii pun un timer si sa mil omoare la timpul de o juma de secunda!

modelcopiacopia.png

 wde [We Drift Everywhere] clan!

Link to comment
Share on other sites

Ce nai inteles eu am 3d speedometer si 3d ala dispare la o secunda dupa ce ma dau jos din masina eu as vrea sa dispara la o jumatete de secunda dupa ce ma dau jos din masina si ma gandeam sa ii pun un timer si sa mil omoare la timpul de o juma de secunda!

Fal ca o functie de timer:

forward KillTimer(playerid);
public KillTimer(playerid);
{
	for(new forplayerid; forplayerid < MAX_PLAYERS; forplayerid++)
	{
		DeletePlayer3DTextLabel(forplayerid, speedo3Dtext);
	}
	return true; // aici pune 1 daca nu merge cu true.
}
apoi la public OnPlayerExitVehicle:
public OnPlayerExitVehicle(playerid, vehicleid)
{
                SetTimer("KillTimer",500,0);
                return 1; //mai încearca si cu 0 , daca nu scoate linia asta
}

PS: Ar trebui sa mearga, daca nu scoate cuvantu "playerid" dintre parantezele "(  )" de la forward si KillTimer de mai sus.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.