Car problem.
#2

Dude you put the model of the car

right here at red mark

Код:
AddStaticVehicle(412,2511.3474,-1688.5330,13.3903,230.1526,10,8); // GroveC1
use like this:

pawn Код:
new thevehicle;

public OnGameModeInit()
{
  SetGameModeText("Live 'N' Scream");
  AddPlayerClass(107,2519.5652,-1673.0038,14.5379,80.2884,0,0,0,0,0,0); // GroveS1
  thevehicle = AddStaticVehicle(412,2511.3474,-1688.5330,13.3903,230.1526,10,8); // GroveC1
  return 1;
}

public OnGameModeExit()
{
return 1;
}

public OnPlayerConnect(playerid)
{
    SendClientMessage(playerid, COLOR_YELLOW, "SERVER: /modhelp -> /admins -> /updates");
    return 1;
}

public OnPlayerEnterVehicle(playerid, vehicleid)
{
   if(vehicleid == thevehicle)
   {
      new name[MAX_PLAYER_NAME+1];
      GetPlayerName(playerid, name,sizeof(name));
      if(strfind(name,"[GS]",false) != -1);
      }
      else
      {
         SendClientMessage(playerid, COLOR_GREEN,"SERVER: You are not a official Grove Street Member!");
         RemovePlayerFromVehicle(playerid);
      }
   }
   return 1;
}
Reply


Messages In This Thread
Car problem. - by Lynet - 10.12.2012, 13:34
Re: Car problem. - by dr.lozer - 10.12.2012, 13:39
Re: Car problem. - by Lynet - 10.12.2012, 13:48
Re: Car problem. - by dr.lozer - 10.12.2012, 14:58
Re: Car problem. - by you10 - 10.12.2012, 14:59
Re: Car problem. - by Lynet - 11.12.2012, 05:46
Respuesta: Car problem. - by deb014 - 11.12.2012, 06:01
Re: Respuesta: Car problem. - by Konstantinos - 11.12.2012, 09:23
Re: Car problem. - by Jarnu - 11.12.2012, 09:28
Respuesta: Re: Respuesta: Car problem. - by deb014 - 11.12.2012, 13:06

Forum Jump:


Users browsing this thread: 1 Guest(s)