Question
#1

hi, i`ve asked this b4 and nobody really know what i was wanting.
i will explain what i need:
I need Something witch will lock doors of a car (so not enterable) for all classes/skins except one.

like this: a cop skin can go in cop cars, if a civillian tries he wont be able to get in as driver.

i hope someone understands me and knows a solution to this thing what im looking for a week.
Reply
#2

Quote:
Originally Posted by laser50
hi, i`ve asked this b4 and nobody really know what i was wanting.
i will explain what i need:
I need Something witch will lock doors of a car (so not enterable) for all classes/skins except one.

like this: a cop skin can go in cop cars, if a civillian tries he wont be able to get in as driver.

i hope someone understands me and knows a solution to this thing what im looking for a week.
Are you honestly saying you've searched and not been able to find anything on this?

Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
      if(gTeam[playerid] != TEAM_COP)
      {
          if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 596)
          {
                RemovePlayerFromVehicle(playerid);
          }
    }
}
return 1;
}
Reply
#3

i was`n meaning it with teams, i was meaning it with skins are and aren`t allowed to get inside a car

i was thinking of this: SetVehicleParams
Reply
#4

Код:
public OnPlayerSpawn(playerid)
{
      if(GetPlayerSkin(playerid) != id of skin)
      {
          for(new j = 0; j < MAX_VEHICLES; j++)
          {
                if(GetVehicleModel(j) == 596)
                {
                    SetVehicleParamsForPlayer(j, playerid, 0, 1);
                }
          }
    }
    return 1;
}
I think it goes without saying that this needs a bit of tweeking for your own script.
Reply
#5

thats the problem, its a bit too difficle for me...
Reply
#6

Quote:
Originally Posted by laser50
thats the problem, its a bit too difficle for me...
Well then you need to learn the basics. You can't expect us to help you right down to the minute details. If you want that then go into the Script Request section. The point of this section is to guide people with their scripts and to help them learn(provided they know the basics), but you don't even want to try to do anything yourself, not even use search.
Reply
#7

i searched and its just too difficle...

Reply
#8

u want to create a server or u want to get a person to create your server
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)