AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Turning off... (https://forums.alliedmods.net/showthread.php?t=19520)

Rolling735 10-18-2005 17:50

Turning off...
 
Ok, I am trying to turn off ooc while people are in jail. Can you please tell me if this would work, and if not can you tell me what would? Thanks

Quote:

new origin[3]
get_user_origin(players[i],origin)
if(get_distance(origin,jailone) <= 150.0 || get_distance(origin,jailtwo) <= 150.0 || get_distance(origin,jailthree) <= 150.0 || get_distance(origin,jailfour) <= 150.0)
{
}
else
{
sv_ooc[players[i]] -= 1
}
}
else if ( sv_ooc[players[i]] <= 0 )
{

XxAvalanchexX 10-18-2005 18:03

I'm not sure how that coded is supposed to be used, but I think maybe this is what you are looking for:

Code:
new origin[3] get_user_origin(players[i],origin) if(get_distance(origin,jailone) <= 150 || get_distance(origin,jailtwo) <= 150 || get_distance(origin,jailthree) <= 150 || get_distance(origin,jailfour) <= 150) {    sv_ooc[players[i]] = 0; } else {    sv_ooc[players[i]] = 1; } if ( sv_ooc[players[i]] <= 0 ) {


All times are GMT -4. The time now is 23:38.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.