NEED A SCRIPT WHICH WILL DISABLE ALL COMMANDS, WHEN YOUR IN JAIL?
#7

Quote:
Originally Posted by [SAP
Francis ]
Quote:
Originally Posted by aspire5630
Quote:
Originally Posted by [SAP
Francis ]
Hi there,

To make that, you must return a true value when you're in jail, like that:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if(IsInJail(playerid)) 1
    return 1;

  // Your commands here

  return 0;
}
Have fun scripting.

Kind regards,

Francis Morissette
SA-MP Scripter
http://sa-mp.com
What do i put as the variable?
Hi there,

When jailing the player, you should set a variable like "Jailed[playerid]" to true or to 1, as 1 is the numerical value of true. Then you would replace "IsInJail(playerid)" by "Jailed[playerid]".

Have fun scripting.

Kind regards,

Francis Morissette
SA-MP Scripter
http://sa-mp.com
soo i put it like that?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)