Vehicles Owned by 1 person, Script Bug
#1

I'm trying to make this simple, so while the code is elementary, all I need it to do is prevent other players from getting into the "gcars", yet this script causes ALL server cars to be unable to enter (except by "Jason_Budley" (server owner, me))

Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new G_Check=GetPlayerVehicleID(playerid);
	if (G_Check==gcar||gcar2||gcar3||gcar4||gcar5||gcar6||gcar7||gcar8||gcar9)
	{
	    new PlayerName[24];
  		GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
    	if (strcmp(PlayerName,"Jason_Budley",true))
    	{
    	    ClearAnimations(playerid);
    	    return 1;
    	}
	}
	else
	{
	    return 1;
	}
	return 1;
}
Reply


Messages In This Thread
Vehicles Owned by 1 person, Script Bug - by Aerotactics - 11.02.2014, 18:30
Re: Vehicles Owned by 1 person, Script Bug - by PowerPC603 - 11.02.2014, 18:38
Re: Vehicles Owned by 1 person, Script Bug - by Aerotactics - 11.02.2014, 18:42
Re: Vehicles Owned by 1 person, Script Bug - by PowerPC603 - 11.02.2014, 18:46
Re: Vehicles Owned by 1 person, Script Bug - by Aerotactics - 11.02.2014, 18:46
Re: Vehicles Owned by 1 person, Script Bug - by PowerPC603 - 11.02.2014, 18:55
Re: Vehicles Owned by 1 person, Script Bug - by Aerotactics - 11.02.2014, 19:30

Forum Jump:


Users browsing this thread: 2 Guest(s)