SA-MP Forums Archive
question - 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)
+--- Thread: question (/showthread.php?tid=634934)



question - crukk11 - 29.05.2017

1;how to make limit in room like dm or other room

2;if i have killstreak script, can i make for dm and when out from dm gamemode . the script hide from freeroam or other gamemode,how?

3;how to make if admin login / logout, it show message admin login/logout


Re: question - coool - 29.05.2017

Quote:
Originally Posted by crukk11
Посмотреть сообщение
1;how to make limit in room like dm or other room

2;if i have killstreak script, can i make for dm and when out from dm gamemode . the script hide from freeroam or other gamemode,how?

3;how to make if admin login / logout, it show message admin login/logout
1: Use https://sampwiki.blast.hk/wiki/SetPlayerWorldBounds

2: Make a variable. Change it to true and when the killstreak occurs check for the 'true' first
Код:
new bool:IsPlayerKillStreakAllowed[MAX_PLAYERS];
cmd:dm(playerid, params[])
{
    IsPlayerKillStreakAllowed[playerid] = true;
}
public OnPlayerDeath(playerid, killerid, reason)
{
   if(IsPlayerKillStreakAllowed[killerid] == true)
   {
       //other code here
   }
}
3: Just send a message when admin logs in or logs out.


Re: question - crukk11 - 29.05.2017

SetPlayerWorldBounds but

This function doesn't work in interiors!


Re: question - crukk11 - 30.05.2017

anyone


Re: question - crukk11 - 30.05.2017

How to make limit of room


Re: question - crukk11 - 31.05.2017

anyone


Re: question - saffierr - 31.05.2017

Use IsPlayerInRangeOfPoint();


Re: question - Sew_Sumi - 31.05.2017

Make the map non-interior... Either by making a new one, or finding the positions via the IPL/Data files.


Re: question - crukk11 - 31.05.2017

can you explain about IsPlayerInRangeOfPoint();


Re: question - Whatname - 31.05.2017

The functions says it it checks if player is in range of point

Usage :

PHP код:
if(IsPlayerInRangeOfPoint(playeridFloat:radiusFloat:xFloat:yFloat:z))