SA-MP Forums Archive
Problem with SendRconCommand("loadfs name"); - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem with SendRconCommand("loadfs name"); (/showthread.php?tid=66408)



Problem with SendRconCommand("loadfs name"); - Ed2ka49 - 21.02.2009

If someone dies on my server, he auto SendRconCommand("loadfs seifanims"); , But the problem is that it unload the FS for all the server,
How to make this command ONLY for the dead player?

Thanks.


Re: Problem with SendRconCommand("loadfs name"); - yom - 21.02.2009

FS are loaded on the server, not on clients.


Re: Problem with SendRconCommand("loadfs name"); - Ed2ka49 - 21.02.2009

There is no anyway to make the same thing, ONLY for a player?


Re: Problem with SendRconCommand("loadfs name"); - yom - 21.02.2009

You don't even explain what you are trying to do..


Re: Problem with SendRconCommand("loadfs name"); - Ed2ka49 - 21.02.2009

To unload the Filterscript "anims" for one player (the player that dies), I want to cancel his option to /handsup himself.


Re: Problem with SendRconCommand("loadfs name"); - Streetplaya - 21.02.2009

what you need:

2 public
2 forward
1 variable
2 callremotefunction


Re: Problem with SendRconCommand("loadfs name"); - Ed2ka49 - 21.02.2009

It doesn't help me.. I really don't know what to do with this info..


Re: Problem with SendRconCommand("loadfs name"); - yom - 21.02.2009

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if (GetPlayerState(playerid) == PLAYER_STATE_WASTED)
    return false; //disable commands for dead players



Re: Problem with SendRconCommand("loadfs name"); - Ed2ka49 - 21.02.2009

If someone got DMed by someone else, he need to be able to use /report and /b and etc'..
There is any way to disable ONLY ONE command?, Or just unload the FS for ONE player?


Re: Problem with SendRconCommand("loadfs name"); - yom - 21.02.2009

Then just put these 2 lines
pawn Код:
if (GetPlayerState(playerid) == PLAYER_STATE_WASTED)
  return false;
anywhere you want to disable something when playerid is dead..