Vehicle zone
#1

I making system if vehicle enter in some zone server detect vechicleid and destroy it..
But if player in vehicle and if in zone server spam him message Please leave this place
i dont know why??

Код:
new carid = GetPlayerVehicleID(playerid);
	for(new i; i < MAX_PLAYERS; i++)
 	{
    	if(IsPlayerInRangeOfPoint(i, 4.0, 1296.2551,-1863.5883,14.5189))
     	{
      		if(IsPlayerInVehicle(playerid,carid))
        	{
         		SCM(playerid, COLOR_RED,"{EA0C0C}Please leave this place !");
   		}
   		return 1;
   	}
Reply
#2

If you want what you wrote, do this:

Код:
new carid = GetPlayerVehicleID(playerid);
if(IsPlayerInRangeOfPoint(playerid, 4.0, 1296.2551,-1863.5883,14.5189))
{
if(IsPlayerInVehicle(playerid,carid))
{
RemovePlayerFromVehicle(playerid);
DestroyVehicle(carid);
}
Reply
#3

I want that with text,but text spam in my code..
Reply
#4

Than do it for example via textdraw or gametext, it spams SendClientMessage because the server is still checking if the player is in radius of that coordinates
Reply
#5

I know server use sendclientmessage but doesn't spawm..
Where to put that text and fix spamm?
Reply
#6

try to add
pawn Код:
break;
inside the loop so it can prevent it from continuing
Reply
#7

not work
Reply
#8

FIRST BUMP !
Reply
#9

BUMP TWO !
Reply
#10

Anybody
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)