Personal Car
#4

oh sorry..
use this:;
pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
{
  new pname[MAX_PLAYER_NAME];
  GetPlayerName(playerid, pname, sizeof(pname));
  new v = GetPlayerVehicleID(playerid);
  if(v == pcar)
  {
    if(!strcmp(pname, "OwnerName", true))
    {
      SendClientMessage(playerid, 0x999999AA, "Welcome to your private vehicle!");
    }
    else
    {
      SendClientMessage(playerid, 0x999999AA, "This vehicle belongs to OwnerName!");
      RemovePlayerFromVehicle(playerid);
    }
  }
  return 1;
}
Reply


Messages In This Thread
Personal Car - by Petru_Me - 02.04.2011, 17:34
Re: Personal Car - by Sascha - 02.04.2011, 17:38
Re: Personal Car - by Petru_Me - 02.04.2011, 17:45
Re: Personal Car - by Sascha - 02.04.2011, 17:47
Re: Personal Car - by Petru_Me - 02.04.2011, 18:04
Re: Personal Car - by farris - 02.04.2011, 19:22
Re: Personal Car - by Sascha - 02.04.2011, 19:23

Forum Jump:


Users browsing this thread: 2 Guest(s)