enter personal vehicle
#1

hi all
i want something that every player enter a personal vehicle send a message that this vehicle is for %s
i do this but when i enter every vehicle that are not personal vehicle it send me the message
plz help Plz for rep
i put it under onplayerstatechange
Код:
       	if(newstate == PLAYER_STATE_DRIVER && oldstate != PLAYER_STATE_DRIVER)
	{

 if(PlayerInfo[playerb][pVeh] || PlayerInfo[playerb][pVVeh] || PlayerInfo[playerb][pBVeh])
        {
        format(string, sizeof(string), "** you entered to %s 's vehicle **", RPN(playerb));
        SendClientMessage(playerid,COLOR_LIGHTB,string);
		}
		else
        {
		format(string, sizeof(string), "** %s wellcome to your vehicle**", RPN(playerid));
        SendClientMessage(playerid,COLOR_LIGHTB,string);
        }
return 1;
}
Please Help
Reply


Messages In This Thread
enter personal vehicle - by Airblog - 11.12.2014, 16:24
Re: enter personal vehicle - by M4D - 11.12.2014, 17:01
Re: enter personal vehicle - by Airblog - 11.12.2014, 17:11

Forum Jump:


Users browsing this thread: 1 Guest(s)