Ownable vehicles help
#6

well..
pawn Код:
COMMAND:car(playerid)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,-1,"You Need to be in a vehicle");
new vehicle = GetPlayerVehicleID(playerid);
new Name[MAX_PLAYER_NAME];GetPlayerName(playerid,Name,sizeof(Name));
if(!Strcmp(vOwned[vehicle],Name);
      {
            new Str[126];format(Str,sizeof(Str),"Owner: %s, Price: %d, Plate: %s",Name,playerVariables[playerid][vPrice],playerVariables[playerid][vPlate]);
      }else return SendClientMessage(playerid,-1,"Not Your Vehicle");
}
something like this ?
Reply


Messages In This Thread
Ownable vehicles help - by Elysian` - 17.12.2012, 19:58
Re: Ownable vehicles help - by park4bmx - 17.12.2012, 20:00
Re: Ownable vehicles help - by Elysian` - 17.12.2012, 20:02
Re: Ownable vehicles help - by park4bmx - 17.12.2012, 20:04
Re: Ownable vehicles help - by Elysian` - 17.12.2012, 20:06
Re: Ownable vehicles help - by park4bmx - 17.12.2012, 20:15
Re: Ownable vehicles help - by Elysian` - 17.12.2012, 20:17
Re: Ownable vehicles help - by maramizo - 17.12.2012, 20:30
Re: Ownable vehicles help - by Elysian` - 17.12.2012, 20:35
Re: Ownable vehicles help - by Elysian` - 18.12.2012, 13:46

Forum Jump:


Users browsing this thread: 2 Guest(s)