question
#1

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

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

SetPlayerWorldBounds but

This function doesn't work in interiors!
Reply
#4

anyone
Reply
#5

How to make limit of room
Reply
#6

anyone
Reply
#7

Use IsPlayerInRangeOfPoint();
Reply
#8

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

can you explain about IsPlayerInRangeOfPoint();
Reply
#10

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

Usage :

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


Forum Jump:


Users browsing this thread: 1 Guest(s)