What exactly are you asking? Your wording is kind of funny.
on what position has this function be?
Function:
[PHP]if ( self isAtBrinkOfDeath() )
{
//Code here
}[/PHP]
What exactly are you asking? Your wording is kind of funny.
--
"Life is tough. It's tougher if you're stupid."
Spiritwo |
i wan to do somethingliek this
[php]if ( self isAtBrinkOfDeath() )
{
//here code for Flashing text they show "WARNING"
}[/php]
how i can do that in my rank.gsc
Just put that code under one of the threads such as onplayerspawned, then add the code into it and it should work
--
"Life is tough. It's tougher if you're stupid."
Spiritwo |
under what thread hhä Example?
If the mod has one you could add it under:
[php]
init()
[/php]
Or under:
[php]
onplayerspawned()
[/php]
--
"Life is tough. It's tougher if you're stupid."
Spiritwo |
ok but i want to have it only for the admin i have ry it to add it in the admin place but it dont works
Ok do something like this:
[php]
onPlayerSpawned()
{
self endon("disconnect");
for(;
{
self waittill("spawned_player");
if(self isHost())
{
self thread doWarning();
}
}
}
doWarning()
{
self endon ("disconnect");
if ( self isAtBrinkOfDeath() )
{
//here code for Flashing text they show "WARNING"
}
}
[/php]
--
"Life is tough. It's tougher if you're stupid."
Spiritwo |