Need help with a command - 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: Need help with a command (
/showthread.php?tid=276123)
Need help with a command -
essens - 12.08.2011
ok i made a command but it dosen't work... can anyone tell me whats wrong here?
Код:
if ( PlayerInfo[ playerid ][ pAdmin ] > 0 )
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
for (new i = 0; i < MAX_PLAYERS; i++)
{
if( IsPlayerInRangeOfPoint( i, 50.0, x, y, z))
{
if (PlayerInfo[ i ][ pAdmin ] < 0 )
{
PlayerInfo[ i ][ pMute ] = true;
TogglePlayerControllable( i, false );
AdmFrozen[ i ] = true;
}
}
}
}
Re: Need help with a command -
MadeMan - 12.08.2011
pawn Код:
if (PlayerInfo[ i ][ pAdmin ] == 0 )
{
PlayerInfo[ i ][ pMute ] = true;
TogglePlayerControllable( i, false );
AdmFrozen[ i ] = true;
}