Problem with SendRconCommand("loadfs name");
#1

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.
Reply
#2

FS are loaded on the server, not on clients.
Reply
#3

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

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

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

what you need:

2 public
2 forward
1 variable
2 callremotefunction
Reply
#7

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

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

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?
Reply
#10

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..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)