Message appear four times
#6

Simply because you shouldn't send a message when a player isn't even close to a vehicle when looping, right place to send that is outside the loop, if everything fails.
PHP Code:
for(...)
{
        ...
}
SendClientMessage(playeridCOLOR_GREY"You are not behind any van."); 
And you also need to return when finding the right vehicle to load cargo behind, so it won't keep looping.
Reply


Messages In This Thread
Message appear four times - by AndreiWow - 29.08.2016, 22:48
Re: Message appear four times - by Sanady - 29.08.2016, 22:57
Re: Message appear four times - by Shinja - 29.08.2016, 23:08
Re: Message appear four times - by AndreiWow - 29.08.2016, 23:10
Re: Message appear four times - by Shinja - 29.08.2016, 23:15
Re: Message appear four times - by PrO.GameR - 30.08.2016, 08:04

Forum Jump:


Users browsing this thread: 1 Guest(s)